http://qs321.pair.com?node_id=447422


in reply to WWW::Mechanize follow meta refreshes

$mech->content() =~ /<meta http-equiv="refresh" content="0;url=([^"]*) +"/; my $url = $1;
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!

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.