http://qs321.pair.com?node_id=568811


in reply to ranged conditional with variable

I'm curious. What are you trying to do with that pattern matching? I've seen .. usage just in arrays, or iteration. Could you enlight me?

Igor 'izut' Sutton
your code, your rules.

Replies are listed 'Best First'.
Re^2: ranged conditional with variable
by Hofmator (Curate) on Aug 22, 2006 at 12:11 UTC
    What you know is probably .. in list context. The OP is using .. in scalar context (the so called flip-flop operator), see perldoc perlop -> Range Operators

    -- Hofmator

      Thanks for your reply! We are always learning Perl magics :-)

      Igor 'izut' Sutton
      your code, your rules.