This should get you started:
#! perl use strict; use warnings; my %hash = ( key => {'individual name' => [['coordinates'], ['Rotation'], ['hei +ght']]}, ); my $coords = $hash{key}->{'individual name'}[0][0]; my $rotation = $hash{key}->{'individual name'}[1][0]; my $height = $hash{key}->{'individual name'}[2][0]; print "$_\n" for ($coords, $rotation, $height);
Output:
16:38 >perl 1014_SoPW.pl coordinates Rotation height 16:38 >
See perlreftut.
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: How to access hash and push it in scalar variable
by Athanasius
in thread How to access hash and push it in scalar variable
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |