RE: Terminating script if file does not exist

2004-01-20 Thread Dan Muey
> 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

RE: Terminating script if file does not exist

2004-01-20 Thread Dan Muey
> Perlwannabe wrote: > > > > 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? > > open FILE,

Re: Terminating script if file does not exist

2004-01-20 Thread John W. Krahn
Perlwannabe wrote: > > 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? open FILE, '<', 'certain/directory

RE: Terminating script if file does not exist

2004-01-19 Thread Tim Johnson
nnabe [mailto:[EMAIL PROTECTED] Sent: Mon 1/19/2004 8:25 PM To: [EMAIL PROTECTED] Cc: Subject: Terminating script if file does not exist Basically the script runs and looks for a file in a certain directory. If the file is there, t

Re: Terminating script if file does not exist

2004-01-19 Thread Kenton Brede
On Mon, Jan 19, 2004 at 11:25:02PM -0500, perlwannabe ([EMAIL PROTECTED]) wrote: > 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 i

Terminating script if file does not exist

2004-01-19 Thread perlwannabe
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? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c