Hi Mario, On Sat, Feb 01, 2003 at 06:35:55AM +0000, mario kulka wrote: > Before I upload a file with a random name I would like to make sure that > another file with the same name doesn't already exist. Is there a way to > look for a specific $name file within a directory (on UNIX).
if( -e $file ){ print "$file exists\n"; } else{ print "$file does not exist\n"; } There are a slew of -x filetests -- perldoc -f -X lists 'em all. HTH, -- Michael [EMAIL PROTECTED] http://www.jedimike.net/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]