Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Avoiding vivification with array slice

by betterworld (Curate)
on Sep 09, 2008 at 12:57 UTC ( [id://710072]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @b = grep { defined $_ } @{[ @a[0..5] ]};
    
  2. or download this
    @b = grep { defined $_ }  @{[@a]}[0..5];
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-24 04:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found