Aaron James Trevena > Autodia-2.14 > Autodia::Handler::ASP

Download:
Autodia-2.14.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  5
Open  0
Stalled  2
View/Report Bugs
Source  

NAME ^

Autodia::Handler::ASP - AutoDia handler for ASP

INTRODUCTION ^

Autodia::Handler::ASP is registered in the Autodia.pm module, which contains a hash of language names and the name of their respective language - in this case:

%language_handlers = ( .. , asp => "Autodia::Handler::ASP", .. );

%patterns = ( .. , asp => \%asp, .. );

my %asp = ( regex => '\w+.asp', wildcards => ['asp'], );

CONSTRUCTION METHOD ^

use Autodia::Handler::ASP;

my $handler = Autodia::Handler::ASP->New(\%Config);

This creates a new handler using the Configuration hash to provide rules selected at the command line.

ACCESS METHODS ^

$handler->Parse(filename); # where filename includes full or relative path.

This parses the named file and returns 1 if successful or 0 if the file could not be opened.

$handler->output(); # any arguments are ignored.

This outputs the output file according to the rules in the %Config hash passed at initialisation of the object and the template.

syntax highlighting: