NAME

URL::Check - check a list of url and react (emails etc.) in case of failures

VERSION

Version 0.02

SYNOPSIS

This module is not aimed at being used directly, but via the script url-check.pl

url-check.pl --config=my-config.txt

If no --config argument is set, the value is taken from environment variable URL_CHECK_CONFIG

more examples can be found in the t/resources/config directory but consist in default parameter (mailto etc., then each url to be tested can be followed by dedicated test (time.delay, xpath etc.)

More info can be found on http://alexandre-masselot.blogspot.com/2011/10/perl-url-checker.html

SUBROUTINES/METHODS

readConfig([configFile])

Read the config file. Default file name is taken from $URL_CHECK_FILE

run()

Run the configured tests, and store the result into the local @report

errorReport()

Build a map (subject => ..., content=> ...) with the errors after the run

return () if no error were detected

submitReport(%report)

print on console or send by mail the error output

AUTHOR

Alexandre Masselot, <alexandre.masselot at gmail.com>

BUGS

Please report any bugs or feature requests to bug-url-check at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=URL-Check. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc URL::Check

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2011 Alexandre Masselot.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.