WWW::Link::Reporter::RepairForm - Build a form for repairing links
use WWW::Link; use WWW::Link::Reporter::RepairForm; $link=new WWW::Link; #over time do things to the link ...... $::reporter=new WWW::Link::Reporter::RepairForm; $::reporter->examine($link)
or see WWW::Link::Selector for a way to recurse through all of the links.
This class will output information about any link that it is given.
$self->correct_form(action,url,array_ref) $self->auto_form(link,action,url)
These methods write a form which can be used for repairing a broken link. The form has a hidden attribute giving the original link it refered to. It then outputs a list of known suggestions in a radio list and finally outputs a text field in which a completely new suggestion can be input.
auto_form automatically populates the form with any suggestions and redirections which the link has attached to it.
auto_form
To install WWW::Link, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Link
CPAN shell
perl -MCPAN -e shell install WWW::Link
For more information on module installation, please visit the detailed CPAN module installation guide.