Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Remove elements from an array

by revdiablo (Prior)
on Nov 23, 2004 at 18:04 UTC ( [id://409948]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my @new = grep { $_ ne "certain string" } @old;
    
  2. or download this
      my @new = grep { index($_, "certain string") == -1 } @old;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-03-28 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found