in reply to Re: Get text without children in XML::Twig
in thread Get text without children in XML::Twig

Howdy!

How about a different approach:

my $text = $elt->text('-nochildren');
or some such argument. Are there other methods that might benefit from the same treatment? Would that make more sense than adding a new method, or would that not fit with the general way that XML::Twig works?

yours,
Michael

Replies are listed 'Best First'.
Re^3: Get text without children in XML::Twig
by mirod (Canon) on Dec 08, 2006 at 15:56 UTC

    It does make sense. There are a few methods that could use this argument. Thanks for the idea.