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.
In reply to Re^3: Impact of special variables on regex match performance
by JavaFan
in thread Impact of special variables on regex match performance
by roubi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |