File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed
Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments