Result of Execution :
*** A=1,2 ****
*** 1,2**** --> valid
Dump $VAR1 = '';
$VAR2 = {
'A' => '1,2'
};
** ** ** IN FUNC ** ** ** --> NO VALUES PRINTED HERE
** ** ** IN FUNC ** ** **
For the second part , I guess I have not been able to clarify things
I would maintain a hash , something like :
hash {MACHINE NAME}{A}='1,2'
hash {MACHINE NAME}{B}='3,4'
Once the hash is complete , I would return this to the main function
In the main function , for all machines A, B ..... I need to process all the partitions
However , the problem is I don't know the number of entries under the section [MACHINE NAMES]
I need to loop through all the machines A , B , C . Within a loop I'll try to split $value by ',' and process ....
Quote:
*** A=1,2 ****
*** 1,2**** --> valid
Dump $VAR1 = '';
$VAR2 = {
'A' => '1,2'
};
** ** ** IN FUNC ** ** ** --> NO VALUES PRINTED HERE
** ** ** IN FUNC ** ** **
For the second part , I guess I have not been able to clarify things
I would maintain a hash , something like :
hash {MACHINE NAME}{A}='1,2'
hash {MACHINE NAME}{B}='3,4'
Once the hash is complete , I would return this to the main function
In the main function , for all machines A, B ..... I need to process all the partitions
However , the problem is I don't know the number of entries under the section [MACHINE NAMES]
I need to loop through all the machines A , B , C . Within a loop I'll try to split $value by ',' and process ....