@@ -16,12 +16,12 @@ our ( $st_dev, $st_ino, $st_mode,
16
16
17
17
use Exporter ' import' ;
18
18
our @EXPORT = qw( stat lstat) ;
19
- our @fields = qw( $st_dev $st_ino $st_mode
20
- $st_nlink $st_uid $st_gid
21
- $st_rdev $st_size
22
- $st_atime $st_mtime $st_ctime
23
- $st_blksize $st_blocks
24
- ) ;
19
+ our @fields = qw( $st_dev $st_ino $st_mode
20
+ $st_nlink $st_uid $st_gid
21
+ $st_rdev $st_size
22
+ $st_atime $st_mtime $st_ctime
23
+ $st_blksize $st_blocks
24
+ ) ;
25
25
our @EXPORT_OK = ( @fields , " stat_cando" );
26
26
our %EXPORT_TAGS = ( FIELDS => [ @fields , @EXPORT ] );
27
27
@@ -73,7 +73,7 @@ sub _ingroup {
73
73
# and interpreting it later would require this module to have an XS
74
74
# component (at which point we might as well just call Perl_cando and
75
75
# have done with it).
76
-
76
+
77
77
if (grep $^O eq $_ , qw/ os2 MSWin32/ ) {
78
78
79
79
# from doio.c
@@ -152,7 +152,7 @@ my %op = (
152
152
use constant HINT_FILETEST_ACCESS => 0x00400000;
153
153
154
154
# we need fallback=>1 or stringifying breaks
155
- use overload
155
+ use overload
156
156
fallback => 1,
157
157
-X => sub {
158
158
my ($s , $op ) = @_ ;
@@ -179,20 +179,20 @@ use overload
179
179
use Class::Struct qw( struct) ;
180
180
struct ' File::stat' => [
181
181
map { $_ => ' $' } qw{
182
- dev ino mode nlink uid gid rdev size
183
- atime mtime ctime blksize blocks
182
+ dev ino mode nlink uid gid rdev size
183
+ atime mtime ctime blksize blocks
184
184
}
185
185
];
186
186
187
187
sub populate {
188
188
return undef unless @_ ;
189
189
my $stob = new();
190
190
@$stob = (
191
- $st_dev , $st_ino , $st_mode , $st_nlink , $st_uid , $st_gid , $st_rdev ,
192
- $st_size , $st_atime , $st_mtime , $st_ctime , $st_blksize , $st_blocks )
193
- = @_ ;
191
+ $st_dev , $st_ino , $st_mode , $st_nlink , $st_uid , $st_gid , $st_rdev ,
192
+ $st_size , $st_atime , $st_mtime , $st_ctime , $st_blksize , $st_blocks )
193
+ = @_ ;
194
194
return $stob ;
195
- }
195
+ }
196
196
197
197
sub lstat :prototype(_) ($arg ) {
198
198
populate(CORE::lstat $arg )
@@ -244,8 +244,8 @@ File::stat - by-name interface to Perl's built-in stat() functions
244
244
245
245
=head1 DESCRIPTION
246
246
247
- This module's default exports override the core stat()
248
- and lstat() functions, replacing them with versions that return
247
+ This module's default exports override the core stat()
248
+ and lstat() functions, replacing them with versions that return
249
249
"File::stat" objects. This object has methods that
250
250
return the similarly named structure field name from the
251
251
L<stat(2)> function; namely,
@@ -262,7 +262,7 @@ mtime,
262
262
ctime,
263
263
blksize,
264
264
and
265
- blocks.
265
+ blocks.
266
266
267
267
As of version 1.02 (provided with perl 5.12) the object provides C<"-X" >
268
268
overloading, so you can call filetest operators (C<-f > , C<-x > , and so
0 commit comments