P is for Practical | |
PerlMonks |
Re: Re: Optimizing a string processing subby sauoq (Abbot) |
on Jan 08, 2003 at 21:36 UTC ( [id://225362]=note: print w/replies, xml ) | Need Help?? |
I like your approach. Your first example does exactly what his does with one exception: it won't behave the same in list context. I suspect that your second example is really the desired behavior anyway (as it is commutative.) -sauoq "My two cents aren't worth a dime.";
In Section
Seekers of Perl Wisdom
|
|