in reply to XML::Twig - how can I test for an attribute when the attribute value is 0?
Please assign:
my $f = $label ->att('fq');
and then test whether $f is defined before attempting to decode its actual value.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: XML::Twig - how can I test for an attribute when the attribute value is 0?
by mertserger (Curate) on Aug 30, 2012 at 08:07 UTC |