Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

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


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

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.

  • Comment on Re^4: Climbing Mt. Perlcritic -- Switch statements

Replies are listed 'Best First'.
Re^5: Climbing Mt. Perlcritic -- Switch statements
by Bloodnok (Vicar) on Mar 26, 2009 at 11:45 UTC
    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://753253]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-19 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found