http://www.perlmonks.org?node_id=172832


in reply to Re: Re: Title Re: collapsing revisited
in thread Title Re: collapsing revisited

I suppose what I was wondering was why you left your match unmemorized, and then used $&. I've been lead to believe that's bad form, since once you open that Pandora's box ($`, $& and $'), all your regexes become slower as a result.

Replies are listed 'Best First'.
Re(4): Title Re: collapsing revisited
by Dog and Pony (Priest) on Jun 08, 2002 at 21:24 UTC
    Oh. I had actually forgot that. Do you know if that is the same thing with @- and @+? I can use those instead, at the price of higher obfuscation... :)

    Thanks for the heads up!

    (I just *had* to change the Re: style *grin*).


    You have moved into a dark place.
    It is pitch black. You are likely to be eaten by a grue.
      (Me too. :-))

      Makeshifts last the longest.