in reply to WWW::Mechanize link array de-dup
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: WWW::Mechanize link array de-dup
by Your Mother (Archbishop) on May 06, 2008 at 23:42 UTC | |
by Fletch (Bishop) on May 07, 2008 at 00:24 UTC | |
by MAC25 (Initiate) on May 08, 2008 at 00:00 UTC |