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 reply to Re: WWW::Mechanize follow meta refreshes
by merlyn
in thread WWW::Mechanize follow meta refreshes
by simon.proctor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |