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

Re: ranged conditional with variable

by izut (Chaplain)
on Aug 22, 2006 at 11:41 UTC ( #568811=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://568811]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2021-02-26 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?