in reply to Array of hashes
A)Yes, B) Like so:
Note: Code not tested, and superfriends powers not double-checked.my @superfriends = ( { name => 'aquaman', power => 'talks to fish' }, { name => 'zan', power => 'can turn into water or ice' }, ); # To access the name of the second superfriend in list print "Name: $superfriends[1]{'name'}\n";
Technically, it's an array of hash references, but hey...
stephen
In Section
Seekers of Perl Wisdom