First page Back Continue Last page Overview Graphics
The /p modifier!
Due to the dynamic nature of Perl the use of $`, $& and $' anywhere in a script has a global performance penalty.
With /p modifier the variables ${^PREMATCH}, ${^MATCH}, and ${^POSTMATCH} maybe be used instead.
No penalty! Or at least the same penalty as from using capturing, that is only the regex with the /p modifier will be affected.