NAME

WWW::Mechanize::Plugin::AutoWrite - WWW::Mechanize plugin to automaticaly write fetched page content to a file

SYNOPSIS

use WWW::Mechanize;
use WWW::Mechanize::Plugin::AutoWrite;

$mech = WWW::Mechanize->new();
$mech->autowrite('/tmp/mech.html');

$mech->get('http://www.cpan.org');		#now the $mech->content of the get is automaticali stored to /tmp/mech.html

DESCRIPTION

WWW::Mechanize::Plugin::AutoWrite overrides WWW::Mechanize::get method and every time the $mech->get() is called it stores $mech->content() to a file set by $mech->autowrite() method.

You can then use epiphany browser to see this file. When ever epiphany detects that the content of the file changed it will reload it. So if you have a double screen you can execute code on one screen and watch the page is changing on the other automaticaly.

SEE ALSO

http://search.cpan.org/perldoc?WWW::Mechanize::Plugin::Display

AUTHOR

Jozef Kutej, <jk@>

COPYRIGHT AND LICENSE

Copyright (C) 2007 by Jozef Kutej

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.