This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Improve description of the -s switch.
[perl5.git] / pod / pod2usage.PL
index ae4aaba..a007cf6 100644 (file)
@@ -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: $!";
 
@@ -115,7 +114,7 @@ usage mesage format (defaults to standard input).
 
 B<pod2usage> will read the given input file looking for pod
 documentation and will print the corresponding usage message.
-If no input file is specifed than standard input is read.
+If no input file is specified than standard input is read.
 
 B<pod2usage> invokes the B<pod2usage()> function in the B<Pod::Usage>
 module. Please see L<Pod::Usage/pod2usage()>.