|
|
| P is for Practical | |
| PerlMonks |
Re^8: Global regex giving up too soonby Coruscate (Sexton) |
| on Jan 20, 2004 at 07:42 UTC ( [id://322568]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
1 while $str =~ s/PAT/REPL/; Is the idiom supposed to contain the /g modifier? You didn't include it and I can't say I've ever seen 1 while s/foo/bar/, only 1 while s/foo/bar/g;. So tell me, should there be a /g there or am I in for a new lesson in the regex classroom?
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||