methods.ringing.org

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.

Download the modules

The modules are in two packages.