> 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/file' or exit $!;

Actually die is probably better than exit as exit can have bad 
consequenses in certain circumstances (think mod_perl)

open FILE, '<', 'certain/directory/file' or die $!;


HTH
Dmuey

> 
> 
> John
> -- 
> use Perl;
> program
> fulfillment
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED] 
<http://learn.perl.org/> <http://learn.perl.org/first-response>



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to