diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-01-18 13:08:11 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-01-18 13:08:11 +0000 |
commit | d6dc8a6dc95226ddff7719cd1e0bd053c4e5725e (patch) | |
tree | 22c72716786fa2349be6a55955772799634523bb /lib/File/Copy.pm | |
parent | d5e2eea989a695246f951ac0bf3026d6659bb8b9 (diff) | |
download | perl-d6dc8a6dc95226ddff7719cd1e0bd053c4e5725e.tar.gz |
Remove Mac OS Classic docs from DirHandle and File::{Copy,DosGlob,Find}
The documentation for the different behaviour on Mac OS Classic was not
removed when the relevant code was removed in 862f843bac3434c2. That commit
also remove all callers to several Mac OS classic support functions, but not
the functions themselves. Rectify this.
Diffstat (limited to 'lib/File/Copy.pm')
-rw-r--r-- | lib/File/Copy.pm | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/lib/File/Copy.pm b/lib/File/Copy.pm index 0f17e2b9ac..1cf084bb91 100644 --- a/lib/File/Copy.pm +++ b/lib/File/Copy.pm @@ -22,7 +22,7 @@ sub syscopy; sub cp; sub mv; -$VERSION = '2.20'; +$VERSION = '2.21'; require Exporter; @ISA = qw(Exporter); @@ -529,9 +529,6 @@ VMS systems, this calls the C<rmscopy> routine (see below). For OS/2 systems, this calls the C<syscopy> XSUB directly. For Win32 systems, this calls C<Win32::CopyFile>. -On Mac OS (Classic), C<syscopy> calls C<Mac::MoreFiles::FSpFileCopy>, -if available. - B<Special behaviour if C<syscopy> is defined (OS/2, VMS and Win32)>: If both arguments to C<copy> are not file handles, @@ -590,34 +587,6 @@ it sets C<$!>, deletes the output file, and returns 0. All functions return 1 on success, 0 on failure. $! will be set if an error was encountered. -=head1 NOTES - -=over 4 - -=item * - -On Mac OS (Classic), the path separator is ':', not '/', and the -current directory is denoted as ':', not '.'. You should be careful -about specifying relative pathnames. While a full path always begins -with a volume name, a relative pathname should always begin with a -':'. If specifying a volume name only, a trailing ':' is required. - -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 - # 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 (doesn't copy) files from one - # volume to another - -=back - =head1 AUTHOR File::Copy was written by Aaron Sherman I<E<lt>ajs@ajs.comE<gt>> in 1995, |