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

Not supposedly. They are equivalent.
  • Comment on Re^2: Climbing Mt. Perlcritic -- Switch statements

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