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