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

Re: There's scalar(), but no list(). Perl could need one for rare but reasonable use

by Anonymous Monk
on Jun 14, 2014 at 15:09 UTC ( #1089900=note: print w/ replies, xml ) Need Help??


in reply to There's scalar(), but no list(). Perl could need one for rare but reasonable use

Another way (perl 5.14+):

  • sub { return splice [grep ..., @values] }


Comment on Re: There's scalar(), but no list(). Perl could need one for rare but reasonable use
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (14)
As of 2014-08-22 18:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (163 votes), past polls