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

NAME

XML::XMetaL::Registry - Quick access to XMetaL Registry information

SYNOPSIS

 package XML::XMetaL::Registry;

 my $xmetal_registry = XML::XMetaL::Registry->new();

 # Get a list of all XMetaL versions installed
 my @xmetal_versions = $xmetal_registry->xmetal_versions();

 # Get the XMetaL version with the highest version number
 my $xmetal_version = $xmetal_registry->xmetal_versions();

 # Get a list of the paths to all XMetaL versions
 my @xmetal_directory_paths = $xmetal_registry->xmetal_directory_path();

 # Get the path to the latest XMetaL version
 my $xmetal_directory_path = $xmetal_registry->xmetal_directory_path();

DESCRIPTION

The XML::XMetaL::Registry class has methods that provide shortcuts to some XMetaL Registry information.

At the moment, this class is definitely of the release early variety. It works, but there is a minimum of functionality.

Constructor and initialization

 my $xmetal_registry = XML::XMetaL::Registry->new();

The constructor returns an XML::XMetaL::Registry object.

Class Methods

None.

Public Methods

xmetal_versions
 my @xmetal_versions = $xmetal_registry->xmetal_versions();
 my $xmetal_version = $xmetal_registry->xmetal_versions();

This method returns the version numbers of the XMetaL applications currently installed.

If the method is called in list context, the version numbers of all installed XMetaL applications will be returned.

If the method is called in scalar context, the version number of the newest XMetaL application is returned.

xmetal_directory_path
 my @xmetal_directory_paths = $xmetal_registry->xmetal_directory_path();
 my $xmetal_directory_path = $xmetal_registry->xmetal_directory_path();

This method returns the directory paths of the installed XMetaL applications.

If the method is called in list context, paths of all installed XMetaL applications will be returned.

If the method is called in scalar context, the path of the newest XMetaL application is returned.

Private Methods

None.

ENVIRONMENT

The Corel XMetaL XML editor must be installed.

BUGS

A lot, I am sure.

Please send bug reports to <henrik.martensson@bostream.nu>.

SEE ALSO

See XML::XMetaL.

AUTHOR

Henrik Martensson, <henrik.martensson@bostream.nu>

COPYRIGHT AND LICENSE

Copyright 2003 by Henrik Martensson

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.