in reply to WWW::Mechanize follow meta refreshes
Never never never use $1 without having tested the match. If the match fails, you're using a previous $1 from a previous successful match. Oops!$mech->content() =~ /<meta http-equiv="refresh" content="0;url=([^"]*) +"/; my $url = $1;
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In Section
Cool Uses for Perl