Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Open and parsing a file with array of hashes!?

by Anonymous Monk
on Aug 16, 2012 at 15:25 UTC ( [id://987801]=note: print w/replies, xml ) Need Help??


in reply to Re: Open and parsing a file with array of hashes!?
in thread Open and parsing a file with array of hashes!?

Could it be in a loop in get all the city names?
  • Comment on Re^2: Open and parsing a file with array of hashes!?

Replies are listed 'Best First'.
Re^3: Open and parsing a file with array of hashes!?
by hbm (Hermit) on Aug 17, 2012 at 00:10 UTC
    use strict; use warnings; my $weather = do "weather.txt"; print $_->{xml_api_reply}->{weather}->{forecast_information}->{city}-> +{-data},$/ for @$weather;

    Prints:

    Miami, FL Boston, MA

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://987801]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-26 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found