Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: An optimization of last resort: eliminate capturing from your regexpsby Hue-Bond (Priest) |
on Jul 11, 2006 at 08:22 UTC ( [id://560354]=note: print w/replies, xml ) | Need Help?? |
my $word = substr $str, $-[0] + 10, $+[0] - $-[0] + 10; There seems to be a typo there:
That +10 should be -10. Anyway, the reason I'm replying is not this, but to suggest some typeglob aliasing to make the code a tiny bit easier to read:
--
In Section
Meditations
|
|