[DOCPATCH] File::Copy's synopsis
authorNicholas Clark <nick@ccl4.org>
Wed, 1 Jan 2003 21:09:30 +0000 (21:09 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sat, 4 Jan 2003 20:06:45 +0000 (20:06 +0000)
Message-ID: <20030101210930.GE296@Bagpuss.unfortu.net>

p4raw-id: //depot/perl@18441

lib/File/Copy.pm

index d2152ca..5c5f0f3 100644 (file)
@@ -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");