script/img2ppt.pl untested

filter: Statementstmt 0.0% 0 / 20 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 33 CC 1 SCAR 6.9
CC
1
Cov
0%
help
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/local/bin/perl
2  
3 use strict;
4 use warnings;
5  
6 use XUL::Image::PPT;
7 use Getopt::Long;
8  
9 my ($help, $indir, $from);
10 GetOptions (
11 'help' => \$help,
12 'indir=s' => \$indir,
13 'from=i' => \$from,
14 ) or help(1);
15  
16 help(0) if $help;
17  
18 my $conv = XUL::Image::PPT->new(
19 indir => $indir,
20 from => $from,
21 );
22 $conv->go;
23  
24 sub help {
25 my $code = shift;
26 warn <<'_EOC_';
27 usage: img2ppt [options]
28  
29 options:
30 --help print this message
31 --indir s use s as the image input directory
32 (defaults to ./xul_img)
33 --from i set the index of the first PPT slide
34 (defaults to 1)
35 _EOC_
36 exit($code);
37 }