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
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
Original file line number Diff line number Diff line change @@ -255,6 +255,7 @@ Padre
255255PadWalker
256256Parse::Keyword
257257passwd(1)
258+ Path::Tiny
258259pclose(3)
259260perl(1)
260261Perl4::CoreLibs
You can’t perform that action at this time.
0 commit comments