Skeeve has asked for the wisdom of the Perl Monks concerning the following question:
how can it be that the program dies with:foreach my $child ($tag->children) { my $newElt= XML::Twig::Elt->new(Contains => { map {$_ , $child->{'at +t'}->{$_}||''} qw(name type comment) }); $tag->paste('last_child', $newElt); }
line 546 is the past-line.cannot paste an element that belongs to a tree at ./E2W line 546
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::Twig::Elt cannot paste. Why?
by Skeeve (Parson) on Oct 21, 2003 at 10:55 UTC |