Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: XML-Twig paste

by Anonymous Monk
on Oct 16, 2012 at 20:05 UTC ( #999416=note: print w/ replies, xml ) Need Help??


in reply to Re: XML-Twig paste
in thread XML-Twig paste

Yup, if you  warn  $root->cut; you'll get undef, naturally

sub cut { my $elt= shift; my( $parent, $prev_sibling, $next_sibling, $last_elt); # you can't cut the root, sorry unless( $parent= $elt->{parent}) { return; }

So whatever the reason is, its intended


Comment on Re^2: XML-Twig paste
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-10-21 05:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (96 votes), past polls