On Mon, 02 Jul 2001 17:13:55 -0700, Jeremy Aiyadurai said: .. ~snip~ | push(@messageInfoList,%messageInfo); # pushing hash into the array. | }
Instead of putting the hash into the array, try inserting a reference to it. That is, push(@messageInfoList, \%messageInfo); Then you can access the info by doing the following: foreach (@messageInfoList) { print "From: $_->{From}\n"; ... } Hope that helps. regards, erick