Classes aren't a very Perl concept. Perl thinks of OO as more like namespaces (see also: Moose). So what did you mean by a class? In my mind, the Perl API is XS (which is the darkest magic); but it might also mean, an API for some other package, like GD or XML::Twig or something.