the answers are in perldoc perldsc and perldoc perllol
Assuming your array is called @array, this might do it:
for my $i ( 0 .. $#array ) { next unless $array[$i]->{ServiceType} eq 'FEDEX_2_DAY'; print $array[$i]->{ship_cost} and last; }
Cheers, Sören
In reply to Re: access array of hash?
by Happy-the-monk
in thread access array of hash?
by DuncIT
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |