You can try this out if you are unsure of the size of the array
#!/usr/bin/perl -w use strict; my %aoh = ( 'item' => ['indiv_conf', 'organ_conf', 'comp_conf','sfsfs' +,'afafa' ] ); foreach my $i ( keys %aoh) { if ($i eq'item') { foreach(@{$aoh{$i}}) { print "The item is $_\n"; } } }
In reply to Re: Finding size of an array in an HoA
by Anonymous Monk
in thread Finding size of an array in an HoA
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |