Pixel writes: > > 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)) This is almost normal. Can anybody see a reasonable way to catch $a = [ { a => 2e8 } ]; $a->{a} = 1; ? On the other hand, print $a->{a} does not allocate all this memory, so probably print values %$a should not as well? IlyaThread Previous