The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::Link::Reporter::RepairForm - Build a form for repairing links

SYNOPSIS

    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.

DESCRIPTION

This class will output information about any link that it is given.

$self->correct_form() $self->auto_form()

 $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.