in reply to Naughty Regular Expressions and mod_perl
The RegExps, Prematch and Postmatch without efficiency penalty discussion thread provides a solution for using @+ and @- along with either substr or unpack as a means of accomplishing the same thing as $`, $', and $&, but without the performance penalties. I happen to like that node, but I'm biased because I wrote it a few months back. I hope you find it helpful.
You will also find information on using these special arrays instead of the $`, $', and $& special variables in perlvar.
Good luck! There is a good workaround.
|Replies are listed 'Best First'.|
Re: Re: Naughty Regular Expressions and mod_perl
by Anonymous Monk on Dec 20, 2003 at 19:26 UTC
by ysth (Canon) on Dec 21, 2003 at 07:09 UTC