Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Extracting tagged data from a XML file

by theroninwins (Friar)
on Sep 01, 2004 at 15:16 UTC ( #387555=note: print w/replies, xml ) Need Help??


in reply to Re^2: Extracting tagged data from a XML file
in thread Extracting tagged data from a XML file

Thabnks I got it out myself as well after some lucky tries :-) BTW you must put a -> between the Layer2Detail and the Device.
  • Comment on Re^3: Extracting tagged data from a XML file

Replies are listed 'Best First'.
Re^4: Extracting tagged data from a XML file
by grantm (Parson) on Sep 02, 2004 at 00:32 UTC
    BTW you must put a -> between the Layer2Detail and the Device

    Actually, the arrow is optional in that position. You need the first one, since without it, Perl would interpret $ref{Layer2Details} to mean the value associated with the 'Layer2Details' key in %ref, rather than the value associated with the 'Layer2Details' key in hash referred to by $ref.

    All this and more is explained in Mark's very short tutorial about references which is part of your Perl distribution.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2022-05-25 20:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?