in reply to Re: Get a list attributes from a given tag in Mojo::DOM
in thread SOLVED: Get a list attributes from a given tag in Mojo::DOM

Ye, I got rusty. Forgot about hashref :)
Is $dom supposed to be?:
my $dom = Mojo::DOM->new($data)
from my example?
  • Comment on Re^2: Get a list attributes from a given tag in Mojo::DOM

Replies are listed 'Best First'.
Re^3: Get a list attributes from a given tag in Mojo::DOM
by Corion (Patriarch) on Jun 13, 2024 at 10:54 UTC

    The "main" DOM for the whole document is my $dom = Mojo::DOM->new($data);. Then you likely want to ->find() some element in it, which again is a Mojo::DOM object. I'm sure the linked documentation tells you more about the usage.