Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Climbing Mt. Perlcritic -- Switch statements

by ikegami (Patriarch)
on Mar 25, 2009 at 20:05 UTC ( [id://753236]=note: print w/replies, xml ) Need Help??


in reply to Re: Climbing Mt. Perlcritic -- Switch statements
in thread Climbing Mt. Perlcritic -- Switch statements

Not supposedly. They are equivalent.

Replies are listed 'Best First'.
Re^3: Climbing Mt. Perlcritic -- Switch statements
by Bloodnok (Vicar) on Mar 25, 2009 at 20:10 UTC
    ... but surely they're equivalent only because there's no extended RE at play ?

    A user level that continues to overstate my experience :-))

      Lots of things would make them not equivalent. What's your point?

      By the way, the "x" modifier has nothing to do with extended regexp features.

        WRT the x modifier, I made the mistake of believing what I read in the Perl nutshell 2nd Edition which says, in Chapter 4 Regular Expressions (towards the bottom of Page 66), 'x Use extended regular expressions.' - had I given it a bit more thought, I'd've remembered the numerous examples herein whereby use is made of the x modifier to allow whitespace and comments (as indeed it says in perlre) ... doh !!

        A user level that continues to overstate my experience :-))

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://753236]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-28 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found