Skip to content

Commit 4b09079

Browse files
committed
perldelta for File::stat 1.15
1 parent 87fe274 commit 4b09079

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
@@ -135,9 +135,29 @@ XXX Remove this section if F<Porting/corelist-perldelta.pl> did not add any cont
135135

136136
=item *
137137

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

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

142162
=back
143163

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)