XML::Filter::Dispatcher::CompilerXML::Filter::Dispatcher::Compiler can compile rulesets in to code. | |
Download |
XML::Filter::Dispatcher::Compiler Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Barrie Slaymaker
- Publisher web site:
- http://search.cpan.org/~rbs/
XML::Filter::Dispatcher::Compiler Tags
XML::Filter::Dispatcher::Compiler Description
XML::Filter::Dispatcher::Compiler can compile rulesets in to code. XML::Filter::Dispatcher::Compiler can compile rulesets in to code.SYNOPSIS use XML::Filter::Dispatcher::Compiler qw( xinline ); my $c = XML::Filter::Dispatcher::Compiler->new( ... ) my $code = $c->compile( Package => "My::Filter", Rules => , Output => "lib/My/Filter.pm", ## optional );Most of the options from XML::Filter::Dispatcher are accepted.NOTE: you cannot pass code references to compile() if you want to write the $code to disk, they will not survive. If you want to eval $code, this is ok.METHODSxinlineHints to X::F::D that the string is inlinable code. This is a requirement when using the compiler and is so far (v.52) ignored elswhere. In xinlined code, $self refers to the current dispatcher and $e refers to the current event's data. Or you can get that yourself in $_ and $_ as in a normal SAX event handling method.compileAccepts options that extend and override any previously set for the duration of the compile(), including the ruleset to compile.Requirements:· Perl
XML::Filter::Dispatcher::Compiler Related Software