in reply to Re: Active State Perl 5.6.1 build 626 Trashes hashes.
in thread Active State Perl 5.6.1 build 626 Trashes hashes.

i made the asumption that a pointer to a hash was not treated the same as a hash. That is,$a->{'fish'} and $a{'fish'} are these the same?If not how can I reference and deeferene both. (i.e. </CODE>$a=\{}<CODE>)

Replies are listed 'Best First'.
Re: Re: Re: Active State Perl 5.6.1 build 626 Trashes hashes.
by runrig (Abbot) on Aug 08, 2001 at 23:30 UTC
    First take a trip through 'perldoc perldata'. $a->{'fish'} is dereferencing the hash reference $a.
    $a{'fish'} is referencing an element of the hash %a.
    They are two different things using two different variables, $a and %a.

    And get ready to re-learn all this when Perl 6 comes around :-)