![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
saving matching pattern with flip-flop operatorby raja_infy (Initiate) |
on Jun 23, 2011 at 10:23 UTC ( #911044=perlquestion: print w/replies, xml ) | Need Help?? |
raja_infy has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have a question on flip-flop operator. I have a script something like this
The flop string 'END TIME (.+)' has a variable time at the end which I would like to extract and print. I see that the script match the 'END TIME (.+)', returns false and returns to the while loop beginning, but the matched sub-pattern (.+) is not stored anywhere ($1, $&, $+ etc). How do I extract this ? Thanks in advance -Raja
Back to
Seekers of Perl Wisdom
|
|