summaryrefslogtreecommitdiff
path: root/lib/File/Copy.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/File/Copy.pm')
-rw-r--r--lib/File/Copy.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/File/Copy.pm b/lib/File/Copy.pm
index d2152ca460..5c5f0f3a37 100644
--- a/lib/File/Copy.pm
+++ b/lib/File/Copy.pm
@@ -269,13 +269,13 @@ File::Copy - Copy files or filehandles
=head1 SYNOPSIS
- use File::Copy;
+ use File::Copy;
- copy("file1","file2");
- copy("Copy.pm",\*STDOUT);'
+ copy("file1","file2") or die "Copy failed: $!";
+ copy("Copy.pm",\*STDOUT);
move("/dev1/fileA","/dev2/fileB");
- use POSIX;
+ use POSIX;
use File::Copy cp;
$n = FileHandle->new("/a/file","r");