develooper Front page | perl.perl5.porters | Postings from February 2000

bad pseudo-hash, missing warning?

Thread Next
February 28, 2000 12:35
bad pseudo-hash, missing warning?
Message ID:
Something like:

use strict;
$a = [ { a => { any => 111 } } ];
print values %$a;

ends with "Out of memory!" (on linux, both 5.5.660 and 5.005_03)

this happened because of an programming error (thinking $a was an hash ref whereas
it was an array ref (array of hashes))

cu Pixel.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About