> > 4)my $mean = do { my $s; $s += $_ for @data; $s / > > @data };
Hi, I never see the usage of "for" like this before. Is it equal to the following? And where can I find some more like this? my $s; for(@data){$s += $_ ;} my $mean=$s/@data; Thanks, Li __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>