use WWW::Mechanize; BEGIN { package WWW::Mechanize::Link; use overload '""' => \&url_abs; }