in reply to Re^3: sort an array
in thread sort an array

Sorry, but you're wrong.
$_ = "SomecomplexREhereandthenafoobar"; if (/Some complex RE here and then a # to ignore/x) { print "Escaping that # would have mattered\n"; }

Replies are listed 'Best First'.
Re^5: sort an array
by jdporter (Paladin) on Mar 20, 2006 at 03:07 UTC

    Yeah, o.k., /x. I lose. ;-) But I wonder - was the OP using /x?

      It's probably becoming more prevalent as TheDamian recommends using xms for regex's in Perl Best Practices.

        Fascinating. I guess I'm more old-school than I thought.

        Now, x I could see. But m and s? You may as well say i and e while you're at it. Because it totally depends on what you're trying to do!

        We're building the house of the future together.