XML::XMetaL::Registry - Quick access to XMetaL Registry information
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();
The XML::XMetaL::Registry class has methods that provide shortcuts to some XMetaL Registry information.
XML::XMetaL::Registry
At the moment, this class is definitely of the release early variety. It works, but there is a minimum of functionality.
my $xmetal_registry = XML::XMetaL::Registry->new();
The constructor returns an XML::XMetaL::Registry object.
None.
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.
The Corel XMetaL XML editor must be installed.
A lot, I am sure.
Please send bug reports to <henrik.martensson@bostream.nu>.
See XML::XMetaL.
Henrik Martensson, <henrik.martensson@bostream.nu>
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.
To install XML::XMetaL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::XMetaL
CPAN shell
perl -MCPAN -e shell install XML::XMetaL
For more information on module installation, please visit the detailed CPAN module installation guide.