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 ideas on how to do this?
#!/usr/bin/perl use warnings; use strict; my $file_name = "/home/bob/test.pl"; if ( ! -e $file_name) {die "$!"}; print "This\n"; Hth, Kent -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>