perl and anonymous hashes
Hey i am coding in perl and i need some help accessing an anonymous hash within an array. When i use Data::Dumper to print what the array looks like to see what the hash looks like, this is what i get:
Code:
$VAR1 = [
{
'Tree' => 'fir',
'DBH' => '23',
'Height' => '80',
'Growth' => "1.2"
}
{
'Tree' => 'redwood',
'DBH' => '32',
'Height' => '134',
'Growth' => "3.2"
}
];
that isnt completely accurate (i might have missed a space or something) since i couldnt copy it and had to hand type it all out, but you get the point. Anyways i want to access the value in the 'Tree' key but i dont know how to get it. Any help would be much appriciated. Thanks in advance!