From: Gabor Szabo Date: Tue, 1 Aug 2006 08:55:37 +0000 (+0200) Subject: File::Copy pod updated adding X<> X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0cdecedb39591641a0fd5b1b1eea46916fcdfd5a;p=p5sagit%2Fp5-mst-13.2.git File::Copy pod updated adding X<> From: "Gabor Szabo" Message-ID: p4raw-id: //depot/perl@28659 --- diff --git a/lib/File/Copy.pm b/lib/File/Copy.pm index 0593680..ea56dc6 100644 --- a/lib/File/Copy.pm +++ b/lib/File/Copy.pm @@ -314,7 +314,8 @@ one place to another. =over 4 -=item * +=item copy +X X The C function takes two parameters: a file to copy from and a file to copy to. Either @@ -342,7 +343,8 @@ upon the file, but will generally be the whole file (up to 2Mb), or You may use the syntax C to get at the "cp" alias for this function. The syntax is I the same. -=item * +=item move +X X X The C function also takes two parameters: the current name and the intended name of the file to be moved. If the destination @@ -358,7 +360,8 @@ copy of the file under the destination name. You may use the "mv" alias for this function in the same way that you may use the "cp" alias for C. -=back +=item syscopy +X File::Copy also provides the C routine, which copies the file specified in the first parameter to the file specified in the @@ -372,7 +375,7 @@ this calls C. On Mac OS (Classic), C calls C, if available. -=head2 Special behaviour if C is defined (OS/2, VMS and Win32) +B is defined (OS/2, VMS and Win32)> If both arguments to C are not file handles, then C will perform a "system copy" of @@ -387,9 +390,8 @@ The system copy routine may also be called directly under VMS and OS/2 as C (or under VMS as C, which is the routine that does the actual work for syscopy). -=over 4 - =item rmscopy($from,$to[,$date_flag]) +X The first and second arguments may be strings, typeglobs, typeglob references, or objects inheriting from IO::Handle; @@ -448,13 +450,13 @@ E.g. copy("file1", "tmp"); # creates the file 'tmp' in the current directory copy("file1", ":tmp:"); # creates :tmp:file1 copy("file1", ":tmp"); # same as above - copy("file1", "tmp"); # same as above, if 'tmp' is a directory (but don't do + copy("file1", "tmp"); # same as above, if 'tmp' is a directory (but don't do # that, since it may cause confusion, see example #1) copy("file1", "tmp:file1"); # error, since 'tmp:' is not a volume copy("file1", ":tmp:file1"); # ok, partial path copy("file1", "DataHD:"); # creates DataHD:file1 - - move("MacintoshHD:fileA", "DataHD:fileB"); # moves (don't copies) files from one + + move("MacintoshHD:fileA", "DataHD:fileB"); # moves (don't copies) files from one # volume to another =back