An XBRL Library for Perl

I’ve been working for some time on a Perl module to parse XBRL, a complex XML based format for reporting financial information.  The US SEC requires   publicly traded firms to provide their financial reports in XBRL.  The goal of the Perl module is to provide a clear and easy to use interface to extract data from an XBRL instance and use it for another purpose.  In the initial release, the module features a function to render the XBRL instance into a very basic HTML document.   Because the XBRL standard is large and complex, support for its features will be added over subsequent releases.

Source code and project management is hosted at Github.  The module is available via CPAN here.


2 thoughts on “An XBRL Library for Perl

  1. Jack Shephard February 8, 2013 / 4:31 pm

    Would love to hear more about your experience dealing with XBRL. Am downloading your perl module to try it out.

    • Mark Gannon February 8, 2013 / 8:15 pm

      Please be gentle. The Perl library is far from finished. I’m currently working on expanding the tests as a prelude to re-factoring the code. If you have any use cases I’d love to hear them.

      I’ve found the XBRL standard to be an exceptionally challenging one to understand and implement code against. The SEC’s XBRL processing engine appears to encourage the creation of XBRL that doesn’t comply with the standard.

      If you’re interested in a practical application of the Perl module, I used it to summarize 10-Q and 10-K filings with the SEC. You can see the results at: .

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s