P is for Practical | |
PerlMonks |
Re: reg. expr. multiple substitutionsby BrowserUk (Patriarch) |
on May 17, 2012 at 13:26 UTC ( [id://971061]=note: print w/replies, xml ) | Need Help?? |
Use a hash and a loop:
Depending upon the nature of the text involved, you may need to quotemeta some stuff, but that's the basic idea. Note however, this is only slightly more compact; it will not be quicker or much easier to maintain. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|