diff options
author | Nicolas R <atoomic@cpan.org> | 2020-03-12 16:42:24 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-03-13 10:54:09 -0600 |
commit | ce957b554e06659e23c22d868e747b60f010883e (patch) | |
tree | 02beef4006c4c434a4379ccd4d36f6a07953b262 /utils/h2ph.PL | |
parent | 6b32f57da89de094200b8259611c0f2c80aeeef2 (diff) | |
download | perl-ce957b554e06659e23c22d868e747b60f010883e.tar.gz |
Add strict and warnings to a few utils
Diffstat (limited to 'utils/h2ph.PL')
-rw-r--r-- | utils/h2ph.PL | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/h2ph.PL b/utils/h2ph.PL index db787499eb..eece12ddc5 100644 --- a/utils/h2ph.PL +++ b/utils/h2ph.PL @@ -1,5 +1,8 @@ #!/usr/local/bin/perl +use strict; +use warnings; + use Config; use File::Basename qw(basename dirname); use Cwd; @@ -14,9 +17,9 @@ use Cwd; # This forces PL files to create target in same directory as PL file. # This is so that make depend always knows where to find PL derivatives. -$origdir = cwd; +my $origdir = cwd; chdir dirname($0); -$file = basename($0, '.PL'); +my $file = basename($0, '.PL'); $file .= '.com' if $^O eq 'VMS'; open OUT, '>', $file or die "Can't create $file: $!"; |