Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Hash or Array - Logic Help

by Anonymous Monk
on May 31, 2020 at 14:53 UTC ( #11117533=note: print w/replies, xml ) Need Help??

in reply to Hash or Array - Logic Help

If you have an XML structure and want to find certain things in it, the best way to do that is with XSLT ... which is a query-language for XML. Don't write laborious code that iterates through the nested structure, because you don't have to. LibXML contains full support.

Replies are listed 'Best First'.
Re^2: Hash or Array - Logic Help
by haukex (Bishop) on May 31, 2020 at 15:24 UTC

    Sorry, but I've worked with XSLT and I think this is bad advice. Unless of course you can show an example of XSLT that does what the OP wants and is shorter and easier to understand than the Perl variant.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2020-09-29 15:10 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (146 votes). Check out past polls.