Edit: /usr/bin/pomdump (1240B)
#!/usr/bin/perl -w
use strict;
use FindBin qw($Bin);
use lib "$Bin/../lib";
use Pod::POM;
use Getopt::Std;
use File::Basename;
my $program = basename($0);
my %opts;
getopts('h', \%opts);
die usage() if $opts{ h };
my $file = shift || die usage();
my $parser;
{
no warnings 'once';
$parser = Pod::POM->new( code => 1 )
|| die "$Pod::POM::ERROR\n";
}
my $pom = $parser->parse_file($file)
|| die $parser->error(), "\n";
print $pom->dump;
sub usage {
return <
A.Ford@ford-mason.co.ukE
=head1 VERSION
This is version 0.1 of pomdump.
=head1 COPYRIGHT
Copyright (C) 2009 Andrew Ford. All Rights Reserved.
This module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
=head1 SEE ALSO
For further information please see L.