Testing for the Existence of Files (in UNIX) within Perl
Posted on 2005-03-31
I have a number of files sitting on UNIX I'm not interested if a particular one
exists , I just need to do a file test within my perl script to see if any one of them exists. All my files are in the same directory /home/myarea/data
and start with extractfile.homesystem so a file produced today would be
So effectively I think I need to use some sort of regular expression
in my perl file test.
All I'm concerned about is the availability
of any file with a prefix: dataextract.homesystem.$todaysdate.data
Anything after data. is variable.
Can you help?