in reply to WWW::Mechanize - offline debugging

You can save the page to a local file:

$mech->save_content('myfile.html'); ... # time passes $mech->get('file://myfile.html');

and alternatively, you can load the content from disk manually, thus keeping the URLs as you want them:

my $html = <<HTML <html>...</html> HTML $mech->set_html($html);

Look in the documentation of WWW::Mechanize and potentially look at the .t test files distributed with it.

Replies are listed 'Best First'.
Re^2: WWW::Mechanize - offline debugging
by Anonymous Monk on Nov 08, 2009 at 18:51 UTC
    Thanks Corion; "set_html" doesn't work (or I wasn't able to get it -or update_html- to work) but save_content and "get('file://...') does. Thanks alot!!

      I'm sorry - the method is called ->update_content.