X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fpodselect.PL;h=7fadd7366cb339103144a1992e48a01145d6ab7c;hb=6e0733998eff7a098d2d21d5602f3eb2a7521e1f;hp=b6b8c9b9e43025a1e1737f006cfcf3915ea748b8;hpb=22d4bb9ccb8701e68f9243547d7e3a3c55f70908;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/podselect.PL b/pod/podselect.PL index b6b8c9b..7fadd73 100644 --- a/pod/podselect.PL +++ b/pod/podselect.PL @@ -15,9 +15,8 @@ use Cwd; # This is so that make depend always knows where to find PL derivatives. $origdir = cwd; chdir(dirname($0)); -($file = basename($0)) =~ s/\.PL$//; -$file =~ s/\.pl$// if ($^O eq 'os2' or $^O eq 'dos'); # "case-forgiving" -$file =~ s/\.pl$/.com/ if ($^O eq 'VMS'); # "case-forgiving" +$file = basename($0, '.PL'); +$file .= '.com' if $^O eq 'VMS'; open OUT,">$file" or die "Can't create $file: $!"; @@ -46,7 +45,7 @@ print OUT <<'!NO!SUBS!'; ############################################################################# use strict; -use diagnostics; +#use diagnostics; =head1 NAME @@ -99,6 +98,8 @@ L and L =head1 AUTHOR +Please report bugs using L. + Brad Appleton Ebradapp@enteract.comE Based on code for B written by @@ -112,13 +113,13 @@ use Getopt::Long; ## Define options my %options = ( - "help" => 0, - "man" => 0, - "sections" => [], + 'help' => 0, + 'man' => 0, + 'sections' => [], ); ## Parse options -GetOptions(\%options, "help", "man", "sections|select=s@") || pod2usage(2); +GetOptions(\%options, 'help', 'man', 'sections|select=s@') || pod2usage(2); pod2usage(1) if ($options{help}); pod2usage(-verbose => 2) if ($options{man}); @@ -126,8 +127,8 @@ pod2usage(-verbose => 2) if ($options{man}); pod2usage(2) if ((@ARGV == 0) && (-t STDIN)); ## Invoke podselect(). -if (@{ $options{"sections"} } > 0) { - podselect({ -sections => $options{"sections"} }, @ARGV); +if (@{ $options{'sections'} } > 0) { + podselect({ -sections => $options{'sections'} }, @ARGV); } else { podselect(@ARGV);