> 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
> 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,
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
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
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
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