in reply to Re^2: Impact of special variables on regex match performance
in thread Impact of special variables on regex match performance

Not using those special variables (or rather not have them seen by perl ) isn't an option in the real project
Of course it is.

It doesn't mean you can do better. If you are using $` and $' on every match you make, it doesn't matter: any alternative will make you pay the price.

But if you're using $` and friends on some matches, then /p, @- and @+, and adding more captures in your patterns classical alternatives.

Replies are listed 'Best First'.
Re^4: Impact of special variables on regex match performance
by roubi (Hermit) on Dec 09, 2010 at 21:54 UTC
    Yes, I didn't mean to say that there are no technical alternatives to my predicament. The obstacles are more organizational in nature. Thanks for the help.
      Well, if you cannot avoid using $' and $` in your program, you cannot avoid the costs that come with it. Just wishing the costs would go away isn't going to work.