> Basically the script runs and looks for a file in a certain > directory. If the file is there, the script continues to run > and process the file, but if the file is not there the script > should just exit. > > Any ideas on how to do this?
Beside die() you may also want to check it. if(-e $file) { # alos there are other tests tou can do on a file to see if it's readable,executable, etc... # open .... || die $!; #... # process it ...., etc... } else { print "Sorry, $file does not exist, please enter an existing file or you shall be pummeled for along long time.\n"; } > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>