Re: Iterate through a hashref using XML::Simple (real post)
- From: olson.ray@xxxxxxxxx (Ray)
- Date: Thu, 14 Jun 2007 15:15:21 -0000
On Jun 14, 6:26 am, chas.ow...@xxxxxxxxx (Chas Owens) wrote:
Oh, one other thing.. What If I wanted to iterate over the "Code" tag
However, I bet you want to iterator over all of the contents of the
RejectRecord key like this
my $max = @{$ref->{RejectRecord}};
for my $i (1 .. $max) {
print "record $i of $max failed because
$ref->{RejectRecord}[$i-1]{Reason}\n";
}- Hide quoted text -
- Show quoted text -
as well? Notice there is 2 Code tags that mean different things. One
is the Customer unique identifier ("LarryBoy") and the other is the
Reject Code ("1234"). I am interested in iterating through the
Customer Code.
Thanks again for your help!
Ray
.
- Follow-Ups:
- Re: Iterate through a hashref using XML::Simple (real post)
- From: Chas Owens
- Re: Iterate through a hashref using XML::Simple (real post)
- References:
- Iterate through a hashref using XML::Simple (real post)
- From: Olson Ray
- Re: Iterate through a hashref using XML::Simple (real post)
- From: Chas Owens
- Iterate through a hashref using XML::Simple (real post)
- Prev by Date: Re: Having trouble porting an application to MS-Windows
- Next by Date: RE: Having trouble porting an application to MS-Windows
- Previous by thread: Re: Iterate through a hashref using XML::Simple (real post)
- Next by thread: Re: Iterate through a hashref using XML::Simple (real post)
- Index(es):