charnos has asked for the wisdom of the Perl Monks concerning the following question:
This prints: HASH||HASH(0x3e00258). The first ref() call suggests that $hashref is a valid hash reference, the second call returns false, and the third segment prints out a string representation of a hash reference. This suggests to me that since the second ref() call fails, yet $out[$#out] contains the string representation of a hash ref, that the last element in @out is a stringified version of a valid hash ref.my %hash = ('digest'=>$digest, 'entry'=>$entry); my $hashref = \%hash; print ref $hashref, "|"; push @out, $hashref; print ref $out[$#out], "|$out[$#out]";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pushed references getting stringified somehow?
by chromatic (Archbishop) on Oct 01, 2002 at 16:43 UTC | |
|
Re: Pushed references getting stringified somehow?
by broquaint (Abbot) on Oct 01, 2002 at 16:45 UTC | |
|
Re: Pushed references getting stringified somehow?
by Zaxo (Archbishop) on Oct 01, 2002 at 16:55 UTC | |
|
Re: Pushed references getting stringified somehow?
by charnos (Friar) on Oct 01, 2002 at 17:08 UTC |