Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: The Scalar Range Operator

by denishowe (Acolyte)
on Sep 11, 2012 at 13:43 UTC ( #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
Node Status?
node history
Node Type: note [id://992996]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2014-12-27 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls