XBRL::Unit - Perl Objected-Oriented Module for ecapsulating XBRL Units
use XBRL::Unit; my $unit = XBRL::Unit->new($unit_xml); my $unit_id = $unit->id(): my $unit_measure = $unit->measure(); my $unit_numerator = $unit->numerator(); my $unit_denominator = $unit->denominator();
This module is intended to work in conjunction with the XBRL module for parsing Extensible Business Reporting Language docuements.
Constructor for the object requires a scalar containing the XML text of the unit.
Returns a scalar variable with the unit's ID as assigned in the instance document.
Returns a scalar variable with a string describing the measure for the unit (e.g. iso4217:USD).
Returns a scalar variable with a string describing the the numerator measure (e.g. iso4217:USD) in the event the unit is representing a division of two types of units (e.g Dollars per Share).
Returns a scalar variable with a string describing the the denominator measure (e.g. xbrli:shares) in the event the unit is representing a division of two types of units (e.g Dollars per Share).
Modules: XBRL XBRL::Element XBRL::Table
Source code, documentation, and bug tracking is hosted at: https://github.com/MarkGannon/XBRL .
Mark Gannon <mark@truenorth.nu>
Copyright (C) 2012 by Mark Gannon
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10 or, at your option, any later version of Perl 5 you may have available.
To install XBRL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XBRL
CPAN shell
perl -MCPAN -e shell install XBRL
For more information on module installation, please visit the detailed CPAN module installation guide.