Thanks for looking!... open my $fh, '<', 'data.txt' or die "can't open config file: $!"; my @config = YAML::LoadFile($fh); #print Dumper(@config); for my $record (@config) { my $cities = "$record->{'xml_api_reply'}{'weather'}{'forecast_inf +ormation'}{'city'}->{'-data'}"; my $currwind ="$record->{xml_api_reply}->{weather}->{current_cond +itions}->{wind_condition}->{'-data'}" || ''; #for my $subrecord (@{$record->{Field2}}) { #print "\t$subrecord->{Key} = $subrecord->{Val}\n"; #} print "**$cities*$currwind*\n"; }
In reply to Not a HASH reference using YAML by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |