in reply to can we find two different kind of links using find_all_links
Please (re)read the documentation to ->find_all_links. All the options you provide will construct an and condition, not an or condition. All links returned by ->find_all_links satisfy all conditions.
You will also note that ->find_all_links can also return a list of found links. You can combine two lists by using the comma operator:
my @links_with_class = $mech->find_all_links( class => ... ); my @links_with_regex = $mech->find_all_links( url_regex => ... ); my @links = @links_with_class, @links_with_regex;
|
|---|