In article <[EMAIL PROTECTED]>, Chas. Owens <[EMAIL PROTECTED]> wrote:
> On Sun, Apr 6, 2008 at 5:36 AM, <[EMAIL PROTECTED]> wrote: > snip > > my $user_total = &total(<STDIN>); > snip > > First off, don't call functions with &*. The is _Learning Perl_, and he hasn't got to the point where we tell the reader they don't need the & in front of subroutine calls. Most of the progression goes from the general rule to the usual case. > The problem here is that you > are evaluating <STDIN> in list context. It's supposed to be in list context. That's how you get multiple lines containing one number per line, as noted in the prompt string. :) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/