Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: do not understand grep example

by moritz (Cardinal)
on Jun 15, 2012 at 17:29 UTC ( #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? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2023-03-28 00:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (66 votes). Check out past polls.

    Notices?