Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: wantarray alternative (Context propagation)

by LanX (Saint)
on Jul 10, 2013 at 20:44 UTC ( [id://1043559]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<156> sub tst { (map {lc} @_)[0.. wantarray * $#_] }
    
    ...
    
      DB<158> $scalar=tst("A".."D")
     => "a"
    
  2. or download this
      DB<159> sub tst { (map {lc} @_)[0.. $#_] }
    
    ...
    
      DB<161> $scalar=tst("A".."D")
     => "d"
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-03-19 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found