From 15e0811d172ece0da5948cb83a0af21ba2a34569 Mon Sep 17 00:00:00 2001 From: Elvin Aslanov Date: Thu, 25 Aug 2022 12:47:43 +0400 Subject: [doc] Update File::stat synopsis Added `my` to Synopsis for better practice. Repository points to GH: https://metacpan.org/pod/File::stat --- lib/File/stat.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/File') diff --git a/lib/File/stat.pm b/lib/File/stat.pm index 7b430d79ea..373afd22cb 100644 --- a/lib/File/stat.pm +++ b/lib/File/stat.pm @@ -11,7 +11,7 @@ BEGIN { *warnif = \&warnings::warnif } our(@EXPORT, @EXPORT_OK, %EXPORT_TAGS); -our $VERSION = '1.12'; +our $VERSION = '1.13'; our @fields; our ( $st_dev, $st_ino, $st_mode, @@ -233,7 +233,7 @@ File::stat - by-name interface to Perl's built-in stat() functions =head1 SYNOPSIS use File::stat; - $st = stat($file) or die "No $file: $!"; + my $st = stat($file) or die "No $file: $!"; if ( ($st->mode & 0111) && ($st->nlink > 1) ) { print "$file is executable with lotsa links\n"; } -- cgit v1.2.1