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 projectOf 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 | |
by JavaFan (Canon) on Dec 09, 2010 at 21:57 UTC |