Ron Savage > MojoX-ValidateHeadLinks > validate.head.links.pl

Download:
MojoX-ValidateHeadLinks-1.03.tgz

Annotate this POD

View/Report Bugs
Source  

NAME ^

validate.head.links.pl - Ensure CSS and JS links in web pages point to real files

SYNOPSIS ^

validate.head.links.pl [options]

        Options:
        -help
        -doc_root aDirName
        -maxlevel logOption1
        -minlevel logOption2
        -url aURL

Exit value: 0 for success, 1+ for failure. Die upon error.

The exit value is the number of files not found.

OPTIONS ^

o -doc_root aDirName

The root directory of the web site. This option is mandatory.

Default: ''.

o -help

Print help and exit.

o -maxlevel logOption1

This option affects Log::Handler.

See the Log::Handler::Levels docs.

Default: 'notice'.

For more details in the printed report, try:

my($validator) = MojoX::ValidateHeadLinks -> new(doc_root => $d, maxlevel => 'debug', url => $u);

o -minlevel logOption2

This option affects Log::Handler.

See the Log::Handler::Levels docs.

Default: 'error'.

No lower levels are used.

-url aURL

The URL of the web site's home page. This option is mandatory.

Default: ''.

syntax highlighting: