Do you know where your variables are? | |
PerlMonks |
Re^6: Regex for matching n-fold repititions of arbitrary charactersby LanX (Saint) |
on Oct 08, 2009 at 21:39 UTC ( [id://800103]=note: print w/replies, xml ) | Need Help?? |
Note that if "aabbaab" =~ /aa|bb/g is wrong. Red flags should be raised when you see /g in scalar context outside a loop. Not necessarily! It makes sense when parsing with nested ifs! Friedl's book has some nifty examples...
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|