On Tue, 26 Feb 2002 10:49:37 -0600, Tom Carr wrote: >Perl on a PC is different than mac perl. Not much different, but different >enough to throw me for a few loops. > >I am using the File::Copy module in my app to copy a file from one directory >to another directory in the mac app like this: > >use strict; >use File::Copy; >#-- make backup copy of original files > copy(":oldFile.csv",":newFile.csv") || die "Cannot copy 'oldFile.csv': >$!\n"; > >This does not seem to work on the pc. I changed the colons to slashes to no >avail. Is the File::Copy module a mac perl thing only?
No... it's that colon that trips you up. Er... ":oldFile.csv", is that this file in the current directlory? So why is that colon there at all? Otherwise, replace ":foo" with "./foo". -- Bart.