There's more than one way to do things | |
PerlMonks |
Re: Storing Substitution Output Stringby mrbbking (Hermit) |
on Jul 14, 2002 at 17:49 UTC ( [id://181608]=note: print w/replies, xml ) | Need Help?? |
s///; returns the string sent to it if no substitutions actually happened. You might try something like this: I used a ! instead of the / as the delimiters, so I could leave the literal slashes alone in the regex.
In Section
Seekers of Perl Wisdom
|
|