Perl interface
We provide a Perl language interface to the method database. Retrieving methods from the database and getting information about them can be as simple as this:
#!/usr/bin/perl
use Ringing::XML::Library;
my $library = new Ringing::XML::Library;
$methods = $library->query('name=Lincolnshire&fields=title|pn');
foreach ($methods->methods) {
print "Title: ", $_->title, "\n";
print "Place notation: ", $_->pn->format, "\n\n";
}
The modules
There are several modules which fit together to provide everything you need to use the library.
Ringing::XML::Librarycontains the code for connecting to the database and fetching the XML data about the methods. (Documentation)Ringing::XML::Methodsinterprets method collections in XML. (Documentation)Ringing::XML::Methodinterprets individual methods in XML. (Documentation)Ringing::PlaceNotationcontains routines for manipulating and formatting place notation. (Documentation)
Download the modules
The modules are in two packages.
