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

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

by wfsp (Abbot)
on Feb 24, 2009 at 06:47 UTC ( [id://745914]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @list = (1, 2, 3, 4, 5);
    my @result = grep $_ > 2, @list;
    print "@result";
    
  2. or download this
    3 4 5
    
  3. or download this
    if (exists $item_lookup{$name}){
      print qq{$name has $item_lookup{$name}};
    else{
      print qq{$name is missing $item_lookup{$name};
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-19 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found