Zeng Nan [ZN], on Thursday, November 25, 2004 at 16:04 (+0800) typed the following:
>>6 sub total { >>7 my $sum; >>8 foreach(@_){ $sum += $_ } >>9 $sum; >>10 } ZN> My question is without line 9, the return value is nothing, while I ZN> expect it will return the value of $sum, as it is the last expression ZN> being evaluated, is it correct? I think, it is $_ -- ...m8s, cu l8r, Brano. [Only the insane take themselves seriously. --Beerbohm.] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>