Data::DEC - Perl extension for parsing and validation of DEC and DECS formatted data
use Data::DEC; my $decs = Data::DEC->new( $decs_content ); my $dec = Data::DEC->new( $dec_content ); print "is valid: ".$dec->validate($decs)."\n"; foreach my $d ($dec->toplevel_declarations()) { # d is a Data::DEC::Declaration instance print "name: ".$d->name."\n" # ... }
Data::DEC is a module that can parse DEC formatted data and validate it against a given DECS document to validate its structure. The DEC format is specified at http://www.tkirchner.com/d/dec/DEC-1.0.html
None by default.
None.
Tom Kirchner, <tom@kirchner.com>
Copyright (C) 2012 by Tom Kirchner
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.
To install Data::DEC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::DEC
CPAN shell
perl -MCPAN -e shell install Data::DEC
For more information on module installation, please visit the detailed CPAN module installation guide.