Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by wfsp (Abbot)
on Feb 24, 2009 at 06:47 UTC ( #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? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2022-01-21 21:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (59 votes). Check out past polls.

    Notices?