Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^4: How to get content of an XML::easytree output

by Tworec (Initiate)
on Mar 08, 2013 at 09:39 UTC ( #1022365=note: print w/replies, xml ) Need Help??

in reply to Re^3: How to get content of an XML::easytree output
in thread How to get content of an XML::easytree output

Great, it works now! Only if I could ask one more question.. Why @$ in @$node_array_ref? Why not just @?

And if you know about a site where could I learn more of perl accessing to data, could you please give me a link? Of course I used google and found several sites with perl tutorials even in my language, but I mean if you know any you could personally recommend.

Replies are listed 'Best First'.
Re^5: How to get content of an XML::easytree output
by kcott (Chancellor) on Mar 08, 2013 at 12:22 UTC

    In essence, $node_array_ref is a reference to an array; it is a single scalar value. @$node_array_ref (which you might see written as @{ $node_array_ref }) dereferences $node_array_ref to produce an array of scalar values. See perlreftut for a short tutorial about references.

    The main Perl link that I have bookmarked is This has links to all the Perl documentation. I'd recommend you start with perlintro, then look at the links under Tutorials and then move on to the Reference Manual. There is a vast amount of information here: don't try to learn everything at once; instead, get a feel for which sections contain which information and revisit often - you'll build up a solid body of core knowledge with the ability to quickly find specifics when you need to.

    -- Ken

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1022365]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2018-03-24 16:04 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (299 votes). Check out past polls.