Re: demystify

2009-12-22 Thread John W. Krahn
Vishnu wrote: I was going through the book intermediate perl and came across the following code. my @odd_digit_sum = grep digit_sum_is_odd($_), @input_numbers; sub digit_sum_is_odd { my $input = shift; > what are we doing here? my @digits = split //, $input; # Assu

Re: demystify

2009-12-22 Thread Erez Schatz
A pox on gmail's "reply" not sending to list. 2009/12/22 Erez Schatz : > 2009/12/21 Vishnu : >> I was going through the book intermediate perl and came across the >> following code. > > I'm not familiar with the scope of Intermediate Perl, but from your > questions it would seem that you should've