Gossamer Forum
Home : General : Perl Programming :

Re: [Andy] Understanding a regular Expression

Quote Reply
Re: [Andy] Understanding a regular Expression In reply to
Result of Execution :

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 ....
Subject Author Views Date
Thread; hot thread Understanding a regular Expression gpta_varun 15996 Jul 13, 2010, 10:46 PM
Thread; hot thread Re: [gpta_varun] Understanding a regular Expression
Andy 15669 Jul 14, 2010, 12:15 AM
Thread; hot thread Re: [Andy] Understanding a regular Expression
gpta_varun 15686 Jul 14, 2010, 12:38 AM
Thread; hot thread Re: [gpta_varun] Understanding a regular Expression
gpta_varun 15660 Jul 14, 2010, 12:43 AM
Thread; hot thread Re: [gpta_varun] Understanding a regular Expression
Andy 15680 Jul 14, 2010, 12:47 AM
Thread; hot thread Re: [Andy] Understanding a regular Expression
gpta_varun 15695 Jul 14, 2010, 1:00 AM
Thread; hot thread Re: [gpta_varun] Understanding a regular Expression
Andy 15666 Jul 14, 2010, 1:07 AM
Thread; hot thread Re: [Andy] Understanding a regular Expression
gpta_varun 15653 Jul 14, 2010, 1:09 AM
Thread; hot thread Re: [gpta_varun] Understanding a regular Expression
Andy 15648 Jul 14, 2010, 1:13 AM
Thread; hot thread Re: [Andy] Understanding a regular Expression
gpta_varun 15682 Jul 14, 2010, 1:27 AM
Thread; hot thread Re: [gpta_varun] Understanding a regular Expression
Andy 15719 Jul 14, 2010, 1:29 AM
Thread; hot thread Re: [Andy] Understanding a regular Expression
gpta_varun 15663 Jul 14, 2010, 1:33 AM
Thread; hot thread Re: [gpta_varun] Understanding a regular Expression
Andy 15689 Jul 14, 2010, 1:39 AM
Post; hot thread Re: [Andy] Understanding a regular Expression
gpta_varun 15612 Jul 14, 2010, 1:41 AM
Thread; hot thread Re: [gpta_varun] Understanding a regular Expression
Andy 15685 Jul 14, 2010, 2:09 AM
Thread; hot thread Re: [Andy] Understanding a regular Expression
gpta_varun 15663 Jul 14, 2010, 4:55 AM
Post; hot thread Re: [gpta_varun] Understanding a regular Expression
Andy 15620 Jul 14, 2010, 4:57 AM
Post; hot thread Re: [gpta_varun] Understanding a regular Expression
Andy 15636 Jul 14, 2010, 12:44 AM