Another possibility: since a Mechanize instance isa LWP::UserAgent perhaps call the head method instead if the link URL matches /\.pdf\$/ and see if that's successful.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: WWW::Mechanize and PDF files
by Fletch
in thread WWW::Mechanize and PDF files
by Ineffectual
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |