in reply to SCORM and Perl

The LMS (learning management system, I presume) could be in Perl but it sounds like the API has to addressed from JS because the SCORM spec only allows browser-side clients-

This API is implemented by what the SCORM calls an API Adapter. An API Adapter must reside in a window ... The API Adapter must be an ECMAScript (JavaScript) object named "API" that is accessible though the DOM...

All communication between the content and the LMS is handled by this adapter, thus the content author does not need to worry about communicating with the server, he only needs to be able to find the API Adapter and make the appropriate JavaScript calls.

SCORM Version 1.2 Overview for Developers