Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: ranged conditional with variable

by izut (Chaplain)
on Aug 22, 2006 at 11:41 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://568811]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-25 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found