Hope you can help.
I want to, through perl, do the following....
Find a particular file.
The file is: sdat*.zip
The path is: c:\sdat*.zip
where sdat could be sdat<any number or numbers>.zip
eg.sdat328.zip, sdat542.zip, any number at all.
I want to be able to:
a) Determine if sdat*.zip exists (if -e)
b) Read the filename (not read its contents), but the name of the file into a variable, minus the dot and file extension, and minus the sdat part, so only the number is to go into a variable.
c) Compare this number against another eg.5000
d) blah blah.
Basically, its just the first 2 parts i need help with.
Any help greatly appreciated.