Perl: the Markov chain saw | |
PerlMonks |
Re^2: AUTOLOAD - the good, the bad, and the uglyby dragonchild (Archbishop) |
on Oct 15, 2004 at 04:23 UTC ( [id://399393]=note: print w/replies, xml ) | Need Help?? |
A nit.
is better written (and slightly faster) as
But, most examples I've seen tend to do the one of the following:
In that last, you want to use .* as opposed to .*? because you want it to be as greedy as possible. Update: Fixed slice to scalar access. Update: Added parentheses in second-to-last example. Being right, does not endow the right to be rude; politeness costs nothing.
In Section
Meditations
|
|