develooper Front page | perl.perl5.porters | Postings from May 2004

[PATCH] File::Copy Pod

Thread Next
From:
slaven
Date:
May 10, 2004 03:00
Subject:
[PATCH] File::Copy Pod
Message ID:
1084183057.10822@devpc01.iconmobile.de
Here's a patch for the SYNOPSIS of File::Copy. This removed "use POSIX"
(or is it useful here?) and makes an illegal bareword into a string.

Regards,
	Slaven

--- perl-5.8.x/lib/File/Copy.pm	2003-12-05 20:43:59.000000000 +0100
+++ new.perl-5.8.x/lib/File/Copy.pm	2004-05-10 11:56:38.000000000 +0200
@@ -274,8 +274,7 @@
 	copy("Copy.pm",\*STDOUT);
 	move("/dev1/fileA","/dev2/fileB");
 
-	use POSIX;
-	use File::Copy cp;
+	use File::Copy "cp";
 
 	$n = FileHandle->new("/a/file","r");
 	cp($n,"x");'

-- 
     __o		Slaven Rezic
   _`\<,_		slaven <at> rezic <dot> de
__(_)/ (_)____
______________________________________________________________________________

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