You're trying to use a list of WWW::Mechanize::Link instances as hash keys but they're not getting stringified into something sane (rather you're getting the normal default Perl reference stringification). You're going to need to do your uniqufication differently.
my %seen; my @uniq_urls = grep !($seen{ $_->url }++), @link;
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: WWW::Mechanize link array de-dup
by Fletch
in thread WWW::Mechanize link array de-dup
by MAC25
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |