in reply to Using an array of hashes

You need to store a reference in your array else you will flatten your hash

change
push @tests, %tests;
to
push @tests, \%tests;

Then you want to dereference

change
my %tests = $_;
to
my %tests = %$_



grep
Mynd you, mønk bites Kan be pretti nasti...

Replies are listed 'Best First'.
Re: Re: Using an array of hashes
by Amidamaru (Acolyte) on Oct 25, 2002 at 05:33 UTC
    Cool. I changed both of the lines, and now the code works perfectly. Thanks a whole bunch!