summaryrefslogtreecommitdiff
path: root/lib/File/Copy.pm
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2003-01-01 21:09:30 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-01-04 20:06:45 +0000
commit5ce10329cdf928fb6a8fbddb793336dc3ff530e6 (patch)
tree486da5e01648ba88a2c90d759e7159eb67db73e5 /lib/File/Copy.pm
parentc8c7fdd1a93cac2b3a20ec43fed0b1327c000811 (diff)
downloadperl-5ce10329cdf928fb6a8fbddb793336dc3ff530e6.tar.gz
[DOCPATCH] File::Copy's synopsis
Message-ID: <20030101210930.GE296@Bagpuss.unfortu.net> p4raw-id: //depot/perl@18441
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");