Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: (Mis)Understanding <c>grep...eq $_<c>

by jethro (Monsignor)
on Feb 24, 2009 at 06:49 UTC ( [id://745915]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @list= (1,8,3,9,2);
    
    my @newlist= grep $_<5, @list;
    
    # @newlist would be (1,3,2);
    
  2. or download this
    unless ( grep $person_has eq $_,  $item ) {
    unless ( $person_has eq $item ) {
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-23 23:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found