You can use the rename() function. $file = "ABC"; rename($file, $file."dat") || die "Could not rename file!\n";
I think that's how you use it. I can't test it here. Look it up in perlfunc if it doesn't work. perldoc -f rename -----Original Message----- From: Allison Ogle To: a a Sent: 4/10/02 7:05 AM Subject: Renaming a File Hi, I am trying to open a file which has no file extension. (For example ABC ). What I want to do is rename the file with a file extension. (For example ABC.dat). Does anyone know how to do this? Thanks, Allison -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------------------------------------------------- This email may contain confidential and privileged material for the sole use of the intended recipient. If you are not the intended recipient, please contact the sender and delete all copies. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]