You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Larry Leszczynski <la...@emailplus.org> on 2004/07/16 00:27:20 UTC

[OT] Re: mod_perl regex conundrum

> > Between sawampersand and grep'ing my code, I did find an instance of $&.
> > I removed it, but I am still seeing the problem.
>
> Did you actually use Devel::SawAmpersand to test it? There are other
> modules that pull those in, e.g. if you do 'use English'.

On a related note, it's possible to 'use English' *without* pulling in the
problematic regex match variables, like so:

 use English qw( -no_match_vars );  # Avoids regex performance penalty



Larry

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [OT] Re: mod_perl regex conundrum

Posted by Stas Bekman <st...@stason.org>.
Larry Leszczynski wrote:
>>>Between sawampersand and grep'ing my code, I did find an instance of $&.
>>>I removed it, but I am still seeing the problem.
>>
>>Did you actually use Devel::SawAmpersand to test it? There are other
>>modules that pull those in, e.g. if you do 'use English'.
> 
> 
> On a related note, it's possible to 'use English' *without* pulling in the
> problematic regex match variables, like so:
> 
>  use English qw( -no_match_vars );  # Avoids regex performance penalty

Thanks Larry, the Devel::SawAmpersand manpage documents that:
http://search.cpan.org/dist/Devel-SawAmpersand/lib/Devel/SawAmpersand.pm

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html