Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Parsing an XML datastructure

by zejames (Hermit)
on Dec 14, 2004 at 12:58 UTC ( #414695=note: print w/replies, xml ) Need Help??


in reply to Parsing an XML datastructure

Scalars in your @items array are hash references. Data can be accessed with :

my $ref = shift @items; # print 'http://images.iwoot.com/thumbs/20qpuz_th print $ref->{'SmallImageURL'};

Here you dereference $ref with ->, and then say that the referenced object is a hash, by using ->{..}.

You can do the same with each value of your array.

HTH


--
zejames

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2020-10-26 07:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (250 votes). Check out past polls.

    Notices?