Re: Rename does not work with Windows

2003-08-11 Thread Perl Thingy
Thanks Mile and other supporters. It's was my mistake, I found that the file was not in the current working directory. All working fine now. PT From: michael higgins [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Rename does not work with Windows Date: Thu, 24 Jul 2003 22:14:03 -0400

RE: Rename does not work with Windows

2003-07-25 Thread Wiechel, Ben
You could try using $! To find out what the current error at rename is. Something like: if (! (rename($oldfile, $newfile)) ) { print Could not rename $oldfile: $!\n; } or rename($oldfile, $newfile) || die Could not rename $oldfile: $!\n; -- Benjamin D. Wiechel Xerox Global Services,

Re: Rename does not work with Windows

2003-07-25 Thread Carl Jolley
On Fri, 25 Jul 2003, Perl Thingy wrote: Hi, I use the statement in OS Win2K: rename(oldfile, newfile); even though it could see the file, but it doesnot seem to do rename. It may have somthing to do with permission, but I'm the one who wrote the script! Any idea as why it's not working