WWW::Webrobot::Print::File - Store received content on disk and compare to a second run
See WWW::Webrobot::pod::OutputListeners
File->new(); File->new(dir => "directory_name"); File->new(dir => "dir_name", diff_mode => "dir_name_for_diff");
This module stores received content on a file. The filenames are integers. There is an additional file index that stores the mapping from filenames to url.
index
It may be used to refactor an application.
You may use this mode for refactoring an application.
For the first run use dir = "mylocaldir">. This run stores all results in mylocaldir.
dir =
mylocaldir
Now you may refactor your application.
Then run with dir = "mynewdir", diff_mode => "mylocaldir">. It stores the result in mynewdir and checks all differences to mylocaldir.
mynewdir
See WWW::Webrobot::pod::OutputListeners.
dir Directory name where to put the files (there is a default if argument is missing) diff_mode If defined use diff mode, directory to diff is the value of diff_mode
You can't run it twice using dir = "..."> and compare the two resulting directories afterwards. You must run in diff_mode in your second (third ...) run.
To install WWW::Webrobot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Webrobot
CPAN shell
perl -MCPAN -e shell install WWW::Webrobot
For more information on module installation, please visit the detailed CPAN module installation guide.