in reply to Limitation of extra large hash

The following "Quick and dirty" works for me (Windoze, 5.10):
my @keys = (1..10572); my %hash; @hash{@keys} = undef; print "Size of keys: ".keys %hash,"\n"; print "Bucket details: ".%hash."\n"; keys %hash = 20000; print "Bucket details: ".%hash."\n";
Output is:
Size of keys: 10572 Bucket details: 7718/16384 Bucket details: 8943/32768

Update: Changed to use OPs size of 10572 items.

Replies are listed 'Best First'.
Re^2: Limitation of extra large hash
by codeacrobat (Chaplain) on Apr 02, 2009 at 19:20 UTC
    keys %hash = 20000; # cool, didn't know that worked :-)

    print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});