"be consistent" | |
PerlMonks |
Re^2: REGEX Non-Destructive Flagby mmartin (Monk) |
on Jan 10, 2012 at 17:54 UTC ( [id://947203]=note: print w/replies, xml ) | Need Help?? |
Hey toolic, thanks for the reply. Ok I was afraid of that... Thanks Is there an easier way (less lines) that I could use with my version like my previous example (i.e. $str = $str2 =~ s/pattern/replace/r; ). The only way I can think to do this without changing the original string is:
Thanks, Matt
In Section
Seekers of Perl Wisdom
|
|