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

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

by hbm (Hermit)
on Aug 17, 2012 at 00:10 UTC ( #987894=note: print w/ replies, xml ) Need Help??


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

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


Comment on Re^3: Open and parsing a file with array of hashes!?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (12)
As of 2015-07-03 12:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (53 votes), past polls