Skip to content

Commit 895a91f

Browse files
committed
perldelta for File::stat 1.15
1 parent 4943a2f commit 895a91f

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

pod/perldelta.pod

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,29 @@ XXX Remove this section if F<Porting/corelist-perldelta.pl> did not add any cont
125125

126126
=item *
127127

128-
L<XXX> has been upgraded from version A.xx to B.yy.
128+
L<File::stat> has been upgraded from version 1.14 to 1.15.
129129

130-
XXX If there was something important to note about this change, include that here.
130+
=over 4
131+
132+
=item *
133+
134+
The overridden C<stat> and C<lstat> functions now always return a scalar value,
135+
even in list context. Previously a failed stat in list context would return an
136+
empty list; now it returns C<undef>.
137+
138+
=item *
139+
140+
C<stat> and C<lstat> can now be called without an argument, in which case they
141+
will use C<$_>, just like the built-in C<stat>/C<lstat> functions.
142+
143+
=item *
144+
145+
It is now safe to pass path objects (e.g. instances of L<Path::Tiny>) to
146+
C<stat>/C<lstat>. Previously a failed stat operation on such an object would
147+
die with a cryptic C<Not a GLOB reference at .../File/stat.pm line 208> error.
148+
[GH #23507]
149+
150+
=back
131151

132152
=back
133153

t/porting/known_pod_issues.dat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ Padre
255255
PadWalker
256256
Parse::Keyword
257257
passwd(1)
258+
Path::Tiny
258259
pclose(3)
259260
perl(1)
260261
Perl4::CoreLibs

0 commit comments

Comments
 (0)