Think about Loose Coupling | |
PerlMonks |
Re: trivial wrappingby mce (Curate) |
on Nov 18, 2002 at 15:06 UTC ( [id://213762]=note: print w/replies, xml ) | Need Help?? |
Hi, This is also non destructive, and uses a regexp: Note the print statement in the regex using the e flag.
I don't know which is the most performant, but I do think that substr is more performant than a plain regex.
In Section
Seekers of Perl Wisdom
|
|