Perl: the Markov chain saw | |
PerlMonks |
Re: Re: Re: Capturing with look-aheadby mdillon (Priest) |
on Mar 04, 2002 at 22:50 UTC ( [id://149250]=note: print w/replies, xml ) | Need Help?? |
"Who me?" Your timing is pretty lame. You should have known you'd be spoiling the golf tournament for some people. And contrary to your assertion, I do not think that capturing groups of characters with a regex while only advancing partially is actually something you'd want to do in general. Using substr would be more efficient, as metadoktor's reply wisely noted. This is primarily useful for shortening your golf, so don't act all innocent.
In Section
Seekers of Perl Wisdom
|
|