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

Ted Fiedler fiedlert at gmail.com
Mon Jun 4 05:40:52 PDT 2007


>
>
> >
> > ___SNIP___
> >
> > when ( /^\Q$somepattern\E$/)
> > {
> >  say "seen $somepattern"
> > }
> >
> > ___SNIP___
>
> But of course!  Heck, you don't even need to use qr{}!
>
>
Looks like its time to install 5.9.4!

-- 
"You are never dedicated to something you have complete confidence in. No
one is fanatically shouting that the sun is going to rise tomorrow. They
know it's going to rise tomorrow. "
  -- Robert M Pirsig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/abe-pm/attachments/20070604/4f206f3d/attachment.html 


More information about the ABE-pm mailing list