Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: The Scalar Range Operator

by denishowe (Acolyte)
on Sep 11, 2012 at 13:43 UTC ( [id://992996]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    grep $_ == 3 .. $_ == 7, 1..10    # ==> (3, 4, 5, 6, 7)
    
  2. or download this
    map $_ == 3 .. $_ == 7, 1..10    # ==> (0, 0, 0, 0, 0, 0, 1, 0, 0, 0)
    
  3. or download this
    map scalar($_ == 3 .. $_ == 7), 1..10    # ==> (,,1,2,3,4,5E0,,,)
    
  4. or download this
    map $_ == 3 .. $_ == 7, 1    # ==> (0)
    map $_ == 3 .. $_ == 7, 2    # ==> (0)
    ...
    map $_ == 3 .. $_ == 7, 8    # ==> (0)
    map $_ == 3 .. $_ == 7, 9    # ==> (0)
    map $_ == 3 .. $_ == 7, 10   # ==> (0)
    
  5. or download this
    1 == 3 .. 1 == 7
    
  6. or download this
    "" .. ""
    
  7. or download this
    0 .. 0
    
  8. or download this
    map $_ == 3 .. $_ == 7, 3
    
  9. or download this
    map $_ == 3 .. $_ == 7, 7
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-16 07:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found