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();
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'