On Thu, Oct 10, 2002 at 12:01:31AM +0000, Kyle Babich wrote:
> %up = {
>   'kyle' => 123,
>   'jason' => 123,
>   'chelsea' => 123,
>   'john' => 123,
>   'cheryl' => 123
> };

This is your problem.  You've constructed an anonymous hash and assigned it
to %up.  You should be using parens, not curly braces:

    %up = (...);

This is a good time to tell you that you should always run your code with -w
and use strict.  I.e. your script should start with:

    #!/usr/bin/perl -w

    use strict;

Had you done that, you would have been warned of a possibly problem in the
%up assignment.

Please note, the use strict will require you to declare your variables ($u,
$p, and %up).


The best way to learn Perl is with a good beginning Perl book, such as
Learning Perl or Beginning Perl.  See learn.perl.org for further references.

 
Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to