Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
laziness, impatience, and hubris
 
PerlMonks  

Re^2: section nesting

by anniyan (Monk)
on Jul 26, 2005 at 08:04 UTC ( #478086=note: print w/ replies, xml ) Need Help??


in reply to Re: section nesting
in thread section nesting

GrandFather i am stunned with your nice solution. Thanks a lot for spending such long time to get the solution. ++. It works very well. Definitely i will go through your logic, which might help me in my future.

Regards,
Anniyan
(CREATED in HELL by DEVIL to s|EVILS|GOODS|g in WORLD)


Comment on Re^2: section nesting
Re^3: section nesting
by Tanktalus (Canon) on Jul 26, 2005 at 13:51 UTC

    Warning: there is a reason why people pointed you to XML::Twig and the like. That's because parsing XML is hard. This may make it look easy, but it won't work unless the data is formatted to one tag per line, and no tags are allowed to span lines. Which may work today, but may not tomorrow. XML::Twig will handle it either way, GrandFather's solution will not. This isn't a slight on GrandFather's perl skill - you asked for something that didn't involve XML::Twig, and that's what he did. I just don't want you going out, using it, and then coming back and complaining about GrandFather's supposed lack of coding skill when it doesn't work. It works for the example given, you just need to know its assumptions.

      Thank you Tanktalus. I intended to say pretty much exactly that and to point out the implicit assumptions concerning the data behind the code, then posted the code in a hurry.


      Perl is Huffman encoded by design.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (17)
As of 2014-04-24 12:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls