Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 chanting in the Monastery: (1)
As of 2023-06-07 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (29 votes). Check out past polls.

    Notices?