summaryrefslogtreecommitdiff
path: root/lib/File
diff options
context:
space:
mode:
authorNicolas R <atoomic@cpan.org>2017-09-12 13:20:25 -0600
committerTodd Rinaldo <toddr@cpan.org>2017-11-11 01:07:18 -0600
commitcc01160e81924fc81416f1a69e0c7c52f7c1bcf7 (patch)
treeacd3b2eb04def6f1aab60612f9a1114100144af4 /lib/File
parent1a58b39af83e11fcbeef7ae4cd90c565b1f6b8cb (diff)
downloadperl-cc01160e81924fc81416f1a69e0c7c52f7c1bcf7.tar.gz
Replace multiple 'use vars' by 'our' in lib
Using vars pragma is discouraged and has been superseded by 'our' declarations available in Perl v5.6.0 or later. This commit is about replacing the usage of 'vars' pragma by 'our' in 'lib' directory.
Diffstat (limited to 'lib/File')
-rw-r--r--lib/File/stat.pm12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/File/stat.pm b/lib/File/stat.pm
index b631fbf875..578c3118c8 100644
--- a/lib/File/stat.pm
+++ b/lib/File/stat.pm
@@ -10,9 +10,16 @@ BEGIN { *warnif = \&warnings::warnif }
our(@EXPORT, @EXPORT_OK, %EXPORT_TAGS);
-our $VERSION = '1.07';
+our $VERSION = '1.08';
+
+our @fields;
+our ( $st_dev, $st_ino, $st_mode,
+ $st_nlink, $st_uid, $st_gid,
+ $st_rdev, $st_size,
+ $st_atime, $st_mtime, $st_ctime,
+ $st_blksize, $st_blocks
+);
-my @fields;
BEGIN {
use Exporter ();
@EXPORT = qw(stat lstat);
@@ -25,7 +32,6 @@ BEGIN {
@EXPORT_OK = ( @fields, "stat_cando" );
%EXPORT_TAGS = ( FIELDS => [ @fields, @EXPORT ] );
}
-use vars @fields;
use Fcntl qw(S_IRUSR S_IWUSR S_IXUSR);