Richard Lee wrote:
Just one more question,

what is the difference between,

${$score{ "fred" } }

and

${$score}{"fred"}

are they the samething?

No, they are not.

The first assumes a hash named %score, e.g.

    my %score = ( fred => \ 5 );

where the value of the key 'fred' is a scalar reference.

The second assumes a hash reference named $score, e.g.

    my $score = { fred => 5 };

HTH

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

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


Reply via email to