in reply to can we find two different kind of links using find_all_links
use List::MoreUtils qw/part/; my ($first_type, $second_type, $others) = part { if ($_->url =~ /page=(\d+)$/) { 0 } elsif ($_->attrs->{class} eq 'listAnchor') { 1 } else { 2 } } $mech1->find_all_links();
|
|---|