[ABE.pm] perl 5.10 rules! - a switch statement

Ricardo SIGNES rjbs-perl-abe at lists.manxome.org
Mon Jun 4 05:23:41 PDT 2007


* Ted Fiedler <fiedlert at gmail.com> [2007-06-04T07:36:09]
> Regex?
> 
> ___SNIP___
> 
> when ( /^\Q$somepattern\E$/)
> {
>  say "seen $somepattern"
> }
> 
> ___SNIP___

But of course!  Heck, you don't even need to use qr{}!

-- 
rjbs


More information about the ABE-pm mailing list