NAME OTRS::OPM::Parser - Parser for the .opm file VERSION version 1.04 SYNOPSIS use OTRS::OPM::Parser; my $opm_file = 'QuickMerge-3.3.2.opm'; my $opm = OTRS::OPM::Parser->new( opm_file => $opm_file ); $opm->parse or die "OPM parse failed: ", $opm->error_string; say sprintf "This is version %s of package %s", $opm->version, $opm->name; say "You can install it on those OTRS versions: ", join ", ", @{ $opm->framework }; say "Dependencies: "; for my $dep ( @{ $opm->dependencies } ) { say sprintf "%s (%s) - (%s)", $dep->{name}, $dep->{version}, $dep->{type}; } METHODS new parse as_sopm documentation validate ATTRIBUTES * opm_file * tree * framework * dependencies * files * error_string * description * license * url * vendor * version * name AUTHOR Renee Baecker COPYRIGHT AND LICENSE This software is Copyright (c) 2016 by Renee Baecker. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible)