Modules to load
Several modules need to be loaded by all converters.
Safe
is necessary to arrange the mentioned execution of embedded Perl code.
use Getopt::Long;
use Getopt::ArgvFile; |
Getopt::Long
and Getopt::ArgvFile
are used to evaluate converter options. This handling can of course be managed by alternative option modules or handcrafted code, if you prefer.
use PerlPoint::Parser;
use PerlPoint::Backend;
use PerlPoint::Constants; |
These modules are used to build parser and backend.
PerlPoint::Tags
enables to accept tags defined by other converters.
use PerlPoint::Tags::Format; |
Finally, declare the tags which shall be be valid. These can be tags you defined for this converter especially, tags developed for another converter or basic tags provided with the converter framework. If the tags you want to support are spread around, you can load as many definition modules as necessary. Note that warnings will be displayed if tags are defined multiply, and that the last appearing definition of a tag will overwrite earlier ones.