From: Nicholas Clark Date: Wed, 1 Jan 2003 21:09:30 +0000 (+0000) Subject: [DOCPATCH] File::Copy's synopsis X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5ce10329cdf928fb6a8fbddb793336dc3ff530e6;p=p5sagit%2Fp5-mst-13.2.git [DOCPATCH] File::Copy's synopsis Message-ID: <20030101210930.GE296@Bagpuss.unfortu.net> p4raw-id: //depot/perl@18441 --- diff --git a/lib/File/Copy.pm b/lib/File/Copy.pm index d2152ca..5c5f0f3 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");