summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2012-06-03 11:42:20 +0200
committerNicholas Clark <nick@ccl4.org>2012-06-21 08:58:59 +0200
commitd219c4fb6438557254d9a1cd6c9a4ac5c59c977f (patch)
tree549eda478379532615cad945ce105175572d8106 /lib
parente6c356ccf2c82cd0e55ba89fc30e037f7ae83dd2 (diff)
downloadperl-d219c4fb6438557254d9a1cd6c9a4ac5c59c977f.tar.gz
Bring the joy of strict (and warnings) to lib/File/stat.t
Diffstat (limited to 'lib')
-rw-r--r--lib/File/stat.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/File/stat.t b/lib/File/stat.t
index c98d64d06d..eb8fdd0b94 100644
--- a/lib/File/stat.t
+++ b/lib/File/stat.t
@@ -5,9 +5,13 @@ BEGIN {
@INC = '../lib';
}
+use strict;
+use warnings;
use Test::More;
use Config qw( %Config );
+my $file;
+
BEGIN {
# Check whether the build is configured with -Dmksymlinks
our $Dmksymlinks =
@@ -18,7 +22,7 @@ BEGIN {
# with -Dmksymlinks
# Originally we worked with ./TEST, but other test scripts read from
# that file and modify its access time.
- our $file = '../lib/File/stat.t';
+ $file = '../lib/File/stat.t';
if ( $Dmksymlinks ) {
$file = readlink $file;
die "Can't readlink(../lib/File/stat.t): $!" if ! defined $file;
@@ -131,7 +135,6 @@ SKIP: {
{ # 111640 - File::stat bogus index check in overload
use filetest "access";
- use warnings;
for my $op (split //, "rwxRXW") {
# these should all warn with filetest access
my $w;