Hi ccfc1986,
..I want to be able to loop through the data, and check the current JobID, when i find a match (say 33) i want to grab the State field and do a check against it..
You mean something like so:
ORprint map { $_->{State} if $_->{ID} == 32 } @{ $hash->{data} };
for my $state ( @{ $hash->{data} } ) { print $state->{State} if $state->{ID} == 32; }
In reply to Re: accessing data in hash
by 2teez
in thread accessing data in hash
by ccfc1986
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |