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 reply to Re: Re: Optimizing a string processing sub
by sauoq
in thread Optimizing a string processing sub
by spurperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |