in reply to Re: @- Bug on the loose, lets isolate it
in thread @- Bug on the loose, lets isolate it

I think the point is not what the @- array contains, but that it contains anything at all. The supplied regex doesn't do any capturing, so the @- array should be empty. What we're seeing is that perl is creating a very large array for no reason. Doing so takes time, thus slowing down programs where it shouldn't. That's a Bad Thing.

thor

Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come

  • Comment on Re^2: @- Bug on the loose, lets isolate it

Replies are listed 'Best First'.
Re^3: @- Bug on the loose, lets isolate it
by Ultra (Hermit) on May 30, 2005 at 17:39 UTC
    Good point :-)
    Dodge This!
Re^3: @- Bug on the loose, lets isolate it
by diotalevi (Canon) on Jun 02, 2005 at 13:16 UTC
    Both @- and @+ should contain at least one element each to show where the start and end of the match is. You're supposed to be able to derive $& from substr( ..., $-[0], $+[0] - $-[0] ).