On 12/12/06, Helliwell, Kim <[EMAIL PROTECTED]> wrote:
I think you need to do:

my %loginhash = {};

That's not right. {} is a hash ref, not a hash. It stands for a scalar value.

When you do that

   my %h = {}

or, for the same result,

   my %h = 1;
   my %h = "abacate";

you end with a hash with one pair, whose key is the given scalar and
the value is undef.

See the output of

  $ perl -MData::Dumper -e '%h = {}; print Dumper(\%h)'
  $VAR1 = {
            'HASH(0x10240170)' => undef
          };

Kim Helliwell
LSI Logic Corporation
Work: 408 433 8475
Cell: 408 832 5365
[EMAIL PROTECTED]

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


Reply via email to