summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Book <grinnz@grinnz.com>2021-02-17 13:33:28 -0500
committerKarl Williamson <khw@cpan.org>2021-02-17 18:50:55 -0800
commit83af6b626c6925bf6b3b47699049003954c1aa56 (patch)
tree8c54069e1e246105bb052499b3cc052251ff40d9
parent1c97b6b159e3433bbeeb964c3f357cc57158cbb8 (diff)
downloadperl-83af6b626c6925bf6b3b47699049003954c1aa56.tar.gz
perlfunc - mention that rename sets $! on failure
-rw-r--r--pod/perlfunc.pod3
1 files changed, 2 insertions, 1 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index b655a08ecc..e6cb0f3999 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -6560,7 +6560,8 @@ X<rename> X<move> X<mv> X<ren>
=for Pod::Functions change a filename
Changes the name of a file; an existing file NEWNAME will be
-clobbered. Returns true for success, false otherwise.
+clobbered. Returns true for success; on failure returns false and sets
+L<C<$!>|perlvar/$!>.
Behavior of this function varies wildly depending on your system
implementation. For example, it will usually not work across file system