in reply to Array of Hashes - Too Big?

Did you try it? :)
#!/usr/bin/perl -w use strict; use Data::Dumper; my @a; push @a,{ "$_" => 1 } for 1..40000; print Dumper @a[30000..30010];
This takes < 1 second to complete on my ~666Mhz box.

mr.nick ...

Replies are listed 'Best First'.
Re: Re: Array of Hashes - Too Big?
by xphase_work (Pilgrim) on Jun 20, 2001 at 16:49 UTC
    1.22 seconds on a an UltraSparc 30, with 250MHz UltraSPARC-II and 256M of memory.

    I'm impressed with how fast perl did that, especially on my workstation, which normally runs everything extremely sloooow.

    -xPhase