Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Open several files and read line by lineby AnomalousMonk (Archbishop) |
on Dec 04, 2015 at 17:57 UTC ( [id://1149403]=note: print w/replies, xml ) | Need Help?? |
I don't understand. If /$id1/g && /$id2/g ever becomes true (matching by default against $_ assigned in the outer while-loop), when will it ever become false? I.e., isn't this an infinite loop? And what's the point of the /g modifier in these regexes? And yes, $filename is a terrible name for a file handle! Update: I should have known. Many thanks, choroba. (But $filename is still terrible!) Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|