File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -135,9 +135,29 @@ XXX Remove this section if F<Porting/corelist-perldelta.pl> did not add any cont
135
135
136
136
=item *
137
137
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 .
139
139
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
141
161
142
162
=back
143
163
Original file line number Diff line number Diff line change @@ -255,6 +255,7 @@ Padre
255
255
PadWalker
256
256
Parse::Keyword
257
257
passwd(1)
258
+ Path::Tiny
258
259
pclose(3)
259
260
perl(1)
260
261
Perl4::CoreLibs
You can’t perform that action at this time.
0 commit comments