/usr/share/doc/libogg-vorbis-header-pureperl-perl/examples/ogginfo.pl is in libogg-vorbis-header-pureperl-perl 1.0-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/usr/bin/perl -w
use strict;
use Ogg::Vorbis::Header::PurePerl;
if (!$ARGV[0]) {
print "Usage: ogginfo.pl filename\n";
exit;
}
my $fn = $ARGV[0];
my $ogg = Ogg::Vorbis::Header::PurePerl->new($fn);
foreach my $k (keys %{$ogg->info}) {
print $k, '=', $ogg->info->{$k}, "\n";
}
foreach my $k ($ogg->comment_tags) {
foreach my $cmmt ($ogg->comment($k)) {
print $k, '=', $cmmt, "\n";
}
}
|