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 :-))