Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: map sub to list? (glossary)

by LanX (Sage)
on Sep 09, 2013 at 17:44 UTC ( #1053059=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<124> map { $_ +1 } 1..3
     => (2, 3, 4)
    
  2. or download this
      DB<128> map  sqrt , 1..3
     => (1, "1.4142135623731", "1.73205080756888")
    
      DB<129> map  5 , 1..3
     => (5, 5, 5)
    
  3. or download this
           BLOCK
               A syntactic construct consisting of a sequence of Perl stat
    +ements
    ...
               Anything you can legally say in a spot where a "value" is
               required.  Typically composed of literals, variables, opera
    +tors,
               functions, and "subroutine" calls, not necessarily in that 
    +order.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2022-12-02 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?