On Mon, 4 Feb 2002, Ned Cunningham wrote: > I need to check if a files exists in the root of c. I would like to use if > else to control the response. I have tried to check the file and verify $!, > but it seems to give me a problem.
The -e operator can test for the existance of a file: if(-e $syroot) { #do stuff to file } else { #don't do stuff to file } See perldoc -f -X for mroe details on this and related operators work. -- Brett http://www.chapelperilous.net/ ------------------------------------------------------------------------ He knew the tavernes well in every toun. -- Geoffrey Chaucer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]