develooper Front page | perl.perl5.porters | Postings from January 2003

[DOCPATCH] File::Copy's synopsis

Thread Next
From:
Nicholas Clark
Date:
January 1, 2003 13:15
Subject:
[DOCPATCH] File::Copy's synopsis
Message ID:
20030101210930.GE296@Bagpuss.unfortu.net
The synopsis for File::Copy doesn't summarise the return values.
This fixes that problem.

Nicholas Clark

--- lib/File/Copy.pm.orig	Tue Dec 10 22:43:56 2002
+++ lib/File/Copy.pm	Wed Jan  1 21:06:59 2003
@@ -271,7 +271,7 @@ File::Copy - Copy files or filehandles
 
   	use File::Copy;
 
-	copy("file1","file2");
+	copy("file1","file2") or die "Copy failed: $!";
   	copy("Copy.pm",\*STDOUT);'
 	move("/dev1/fileA","/dev2/fileB");
 

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About