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 problem here is that you
are evaluating <STDIN> in list context.  That means it will read from
STDIN until it is closed.  To close a STDIN on UNIX use control-d,
under Win32 I believe it is control-z.

* unless you know exactly when you should.

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to