in reply to
A question on WWW::mechanize
How about (untested)
$mech->find_all_links( text_regex => qr/download/i )->[-1]
Comment on
Re: A question on WWW::mechanize
Download
Code
In Section
Seekers of Perl Wisdom