OPC - API for low-level manipulations with packages in OPC format (ECMA-376 Part 2)
my $Package = eval{ OPC->new( '/path/to/opc/package' ) }; if( $@ ) { die "/path/to/opc/package is not a valid OPC package: $@"; } # Get part by name my $Part1 = $Package->Part(name => '/part/name'); # Get root node my $Root = $Package->Root; # Get package related part with C<Type> 'http://my.own/custom/type' my $Part2 = $Root->RelatedPart(type => 'http://my.own/custom/type'); # Get list of parts related to some other part my @PictureParts = $Part2>RelatedParts(type => 'http://my.own/type/for/pictures');
See http://www.ecma-international.org/publications/standards/Ecma-376.htm
Litres.ru Team
Copyright (C) 2018 Litres.ru
The GNU Lesser General Public License version 3.0
OPC is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3.0 of the License.
OPC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Full text of License http://www.gnu.org/licenses/lgpl-3.0.en.html.
To install OPC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OPC
CPAN shell
perl -MCPAN -e shell install OPC
For more information on module installation, please visit the detailed CPAN module installation guide.