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

Re: do not understand grep example

by moritz (Cardinal)
on Jun 15, 2012 at 17:29 UTC ( [id://976466]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @odd_digit_sum = grep digit_sum_is_odd($_), @input numbers;
    
  2. or download this
    my @odd_digit_sum;
    for (@input) {
    ...
          push @odd_digit_sum, $_;
       }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-04-25 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found