in reply to SOLVED: Get a list attributes from a given tag in Mojo::DOM
See Mojo::DOM->attr.
my $hash = $dom->attr; say $_ for keys $hash->%*; # for Perl since 5.36 say $_ for keys %$hash; # for all versions of Perl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Get a list attributes from a given tag in Mojo::DOM
by igoryonya (Pilgrim) on Jun 13, 2024 at 10:50 UTC | |
by Corion (Patriarch) on Jun 13, 2024 at 10:54 UTC |