in reply to Re: Memory Restrictions
in thread Memory Restrictions

please take into consideration that hashes are not designed to be "conservative" with regard to memory consumption

quite true (and ++). perl will "over allocate" memory on the assumption you're always going to need more. If you know ahead of time (or can calculate at run-time), you can prevent the over allocation by preallocating memory (checkout perldata):

my @array; $#array = 512; # or my %hash; keys %hash = 512;

but I don't think this is an issue with the original post.

-derby