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

bad pseudo-hash, missing warning?

Thread Next
From:
Pixel
Date:
February 28, 2000 12:35
Subject:
bad pseudo-hash, missing warning?
Message ID:
lyg0uduklp.fsf@leia.mandrakesoft.com
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About