Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: XML::Twig - how can I test for an attribute when the attribute value is 0?

by Anonymous Monk
on Aug 30, 2012 at 07:06 UTC ( #990660=note: print w/replies, xml ) Need Help??


in reply to Re^3: XML::Twig - how can I test for an attribute when the attribute value is 0?
in thread XML::Twig - how can I test for an attribute when the attribute value is 0?

Did you read mirod's post?

What difference would that make?

Did you read mirod's post?

In what way do you think it answers the OPs question?

philiprbrenan showed one answer (using ->att) 10 min after the OP asked

kcott showed the other answer (using ->atts) the next day

2 hours later Khen1950fx digs up a post by mirod copy/pastes the code -- even though it doesn't answer the OPs question, same as mirod's entire post

Sure atts could be part of the answer, but it isn't.

The OP already knew how to deal with attributes (att), and hey, kcott already showed how to use atts to solve the OPs problem.

  • Comment on Re^4: XML::Twig - how can I test for an attribute when the attribute value is 0?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://990660]
help
Chatterbox?
[ambrus]: choroba: heh heh... I have such a doc bug report somewhere. fixed by now.
[Corion]: Once upon a time I had automatic tests for checking the synopsis, but I stopped doing that because the setup was too fragile on CPAN testers for extracting code from the SYNOPSIS.
[Corion]: Maybe I should move the extraction of the code from the SYNOPSIS section into the author tests, or something like that...
[choroba]: Corion Sounds reasonable
[Corion]: choroba: Yeah - I basically have the same for regenerating README and README.mkdown already, except that I do that in Makefile.PL, but I guess one or the other thing should somehow work ;)
[ambrus]: was this bug: https://rt.cpan. org/Public/Bug/ Display.html?id= 59814

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2017-02-27 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (383 votes). Check out past polls.