Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 exploiting the Monastery: (15)
As of 2015-07-30 19:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls