Re: Testing for the existence of a file

2003-08-30 Thread Randal L. Schwartz
> "Kevin" == Kevin Struckhoff <[EMAIL PROTECTED]> writes: Kevin> Actually, using glob works easily enough: Kevin> $file = glob "$DATA_HOME/KeyLinks\*.csv"; Kevin> print $file; Kevin> print "\n"; Using glob() in a scalar context like that will give you gas, and make your coding life miserable

RE: Testing for the existence of a file

2003-08-29 Thread perl
t; - Status: $status\n"; &sendEmailAlert($alert); } exit 0; ...then elsewhere I had sub sendEmailAlert defined. Also, I set crontab to run this every 10 minutes. -Original Message----- From: Kevin Struckhoff [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 10:24 AM To: [E

RE: Testing for the existence of a file

2003-08-29 Thread Kevin Struckhoff
Of [EMAIL PROTECTED] Sent: Friday, August 29, 2003 10:59 AM To: Kevin Struckhoff; [EMAIL PROTECTED] Subject: RE: Testing for the existence of a file Sorry that this is ugly - I wrote it quickly one day... It checks for the file, and makes sure the date stamp is within 10 minutes. (Date::Manip was ove

RE: Testing for the existence of a file

2003-08-29 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Kevin Struckhoff wrote: > Using Perl 5.6.1 on HP-UX. > > I need to test for the existence of a file every day. The filename > changes each day because the filename contains a data and time stamp. > For example, today's filename is KeyLinks_082903_120712.csv. So I > would like to test for KeyLinks*

Testing for the existence of a file

2003-08-29 Thread Kevin Struckhoff
Using Perl 5.6.1 on HP-UX. I need to test for the existence of a file every day. The filename changes each day because the filename contains a data and time stamp. For example, today's filename is KeyLinks_082903_120712.csv. So I would like to test for KeyLinks*.csv My code is as follows: -