#!/usr/bin/perl -w use strict; use Data::Dumper; use YAML; ... # from your code you do what was mentioned here: push @data, $tree; } # end of your foreach for my $record (@data) { my $cities = "$record->{'xml_api_reply'}{'weather'}{'forecast_inf +ormation'}{'city'}->{'-data'}"; print "$cities\n"; }
In reply to Re^2: Open and parsing a file with array of hashes!?
by Anonymous Monk
in thread Open and parsing a file with array of hashes!?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |