http://qs1969.pair.com?node_id=615814

sulfericacid has asked for the wisdom of the Perl Monks concerning the following question:

How do you get the URL of the page after your last request via www::mechanize? I was reading the DOCS and it looks like $mech->uri() should hold the URL but all it does is error out with
Use of uninitialized value in string at bot.pl line 194.
I have a feeling this site occassionally redirects to an IP address when the traffic is at high tide and I need to test whether or not my URLs are still accessible.
my $mech = WWW::Mechanize->new(); $mech->get($url); print $mech->uri();


"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

sulfericacid