script/epod2pod.pl untested

filter: Statementstmt 0.0% 0 / 15 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1
2 use ePod ;
3
4 use strict ;
5
6 if ( $ARGV[0] =~ /^-+h/i || !@ARGV ) {
7
8 my ($script) = ( $0 =~ /([^\\\/]+)$/s );
9
10 print qq`____________________________________________________________________
11
12 ePod - $ePod::VERSION
13 ____________________________________________________________________
14
15 USAGE:
16
17 $script file.epod file.pod
18
19
20 (C) Copyright 2000-2004, Graciliano M. P. <gm\@virtuasites.com.br>
21 ____________________________________________________________________
22 `;
23
24 exit;
25 }
26
27 my $epod = ePod->new() ;
28
29 my $epod_file = shift ;
30 my $pod_file = $ARGV[0] =~ /pod/i ? shift : undef ;
31
32 my $new_file = $epod->to_pod( $epod_file , $pod_file , @ARGV ) ;
33
34 print "File $epod_file converted to $new_file.\n" ;
35
36