I also recommend using a different link object method, url_abs, or else you might get relative:absolute duplicates. You'll also get what you expect instead of lots of apparently fragmentary URIs.
my @uniq_urls = grep !($seen{ $_->url_abs }++), @link;In reply to Re^2: WWW::Mechanize link array de-dup
by Your Mother
in thread WWW::Mechanize link array de-dup
by MAC25
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |