summaryrefslogtreecommitdiff
path: root/lib/File
diff options
context:
space:
mode:
Diffstat (limited to 'lib/File')
-rw-r--r--lib/File/Copy.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/File/Copy.pm b/lib/File/Copy.pm
index 95fb4e18f3..0a6a81eeca 100644
--- a/lib/File/Copy.pm
+++ b/lib/File/Copy.pm
@@ -489,6 +489,14 @@ it sets C<$!>, deletes the output file, and returns 0.
All functions return 1 on success, 0 on failure.
$! will be set if an error was encountered.
+=head1 NOTES
+
+Before calling copy() or move() on a filehandle, the caller should
+close or flush() the file to avoid writes being lost. Note that this
+is the case even for move(), because it may actually copy the file,
+depending on the OS-specific inplementation, and the underlying
+filesystem(s).
+
=head1 AUTHOR
File::Copy was written by Aaron Sherman I<E<lt>ajs@ajs.comE<gt>> in 1995,