Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: removing elements from an array

by hbm (Hermit)
on Aug 09, 2012 at 17:46 UTC ( [id://986562]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @array = grep !/\D/, @array;
    
  2. or download this
    my $i;
    @array = grep ++$i%2, @array;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-26 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found