in reply to Alias $hashref referent to a hash
printsmy %hash = (1 => 2, 3 => 4); my $ref = \%hash; my $alias = $ref; print "hash = ", %hash, "\n"; print "ref hash = ", %$ref, "\n"; print "alias hash = ", %$alias, "\n";
What is the code you are having trouble with?hash = 1234 ref hash = 1234 alias hash = 1234
-Mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Alias $hashref referent to a hash
by hlen (Beadle) on Oct 22, 2004 at 18:11 UTC | |
by JediWizard (Deacon) on Oct 22, 2004 at 18:33 UTC |