Skip to content

Commit 211e794

Browse files
committed
Add strict/warnings
1 parent 508be62 commit 211e794

28 files changed

+37
-2
lines changed

Makefile.PL

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
use strict;
2+
use warnings;
3+
14
use ExtUtils::MakeMaker;
25

36
# Calculate the dependencies
@@ -56,7 +59,7 @@ WriteMakefile(
5659
VERSION_FROM => 'lib/IPC/Run.pm',
5760
( $ExtUtils::MakeMaker::VERSION >= 6.3002 ? ( 'LICENSE' => 'perl', ) : () ),
5861
PREREQ_PM => {
59-
Test::More => '0.47',
62+
'Test::More' => '0.47',
6063
%PREREQ_PM,
6164
},
6265
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },

lib/IPC/Run.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,7 @@ in their exit codes.
10111011
=cut
10121012

10131013
use strict;
1014+
use warnings;
10141015
use Exporter ();
10151016
use vars qw{$VERSION @ISA @FILTER_IMP @FILTERS @API @EXPORT_OK %EXPORT_TAGS};
10161017

@@ -1047,6 +1048,7 @@ BEGIN {
10471048
}
10481049

10491050
use strict;
1051+
use warnings;
10501052
use IPC::Run::Debug;
10511053
use Exporter;
10521054
use Fcntl;

lib/IPC/Run/Debug.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Both of those are untested.
6767
## it can be suppressed by "use IPC::Run ();".
6868

6969
use strict;
70+
use warnings;
7071
use Exporter;
7172
use vars qw{$VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS};
7273

lib/IPC/Run/IO.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ out of Perl, this class I<no longer> uses the fields pragma.
6363
## at some point. Don't know how far how fast.
6464

6565
use strict;
66+
use warnings;
6667
use Carp;
6768
use Fcntl;
6869
use Symbol;

lib/IPC/Run/Timer.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ pragma.
158158
=cut
159159

160160
use strict;
161+
use warnings;
161162
use Carp;
162163
use Fcntl;
163164
use Symbol;

lib/IPC/Run/Win32Helper.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ contact me at [email protected], thanks!.
2020
=cut
2121

2222
use strict;
23+
use warnings;
2324
use Carp;
2425
use IO::Handle;
2526
use vars qw{ $VERSION @ISA @EXPORT };

lib/IPC/Run/Win32IO.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ A specialized IO class used on Win32.
2424
=cut
2525

2626
use strict;
27+
use warnings;
2728
use Carp;
2829
use IO::Handle;
2930
use Socket;

lib/IPC/Run/Win32Pump.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ It parses a bunch of command line parameters from IPC::Run::Win32IO.
2727
=cut
2828

2929
use strict;
30+
use warnings;
3031
use vars qw{$VERSION};
3132

3233
BEGIN {

t/adopt.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ adopt.t - Test suite for IPC::Run::adopt
99
=cut
1010

1111
use strict;
12+
use warnings;
1213

1314
BEGIN {
1415
$| = 1;

t/binmode.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ binary.t - Test suite for IPC::Run binary functionality
99
=cut
1010

1111
use strict;
12+
use warnings;
1213

1314
BEGIN {
1415
$| = 1;

0 commit comments

Comments
 (0)