![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
SOLVED: Get a list attributes from a given tag in Mojo::DOMby igoryonya (Pilgrim) |
on Jun 13, 2024 at 10:31 UTC ( [id://11159945]=perlquestion: print w/replies, xml ) | Need Help?? |
igoryonya has asked for the wisdom of the Perl Monks concerning the following question:
I am learning a Mojo::UserAgent module and I've stumbled upon an issue, that I can't find an answer to on the internet and Mojo's mans.
Here is the test code: It works, but, is there a way to list the existing attributes from a given tag? I tried to find it out from Mojo: :DOM :Asset :Content and I didn't find any mentioning of attr enumeration or conversion to string. Is there a way to find out what tags exist on found tag? Something like this, probably?: I tried to enumerate with: But I only got empty hash. UPDATEOK, i've figured it out:
Back to
Seekers of Perl Wisdom
|
|