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

Re: filtering an array

by swampyankee (Parson)
on Sep 02, 2012 at 01:35 UTC ( #991223=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @after;
    @after = grep { !/[GT]/ } @positions;
    
  2. or download this
    my @after;
    foreach @positions {
        push(@after, $_) if (!/[GT]/);
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-12-28 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (181 votes), past polls