I am trying to write a Perl script which should do the following:
1. Check if a file "Test_Document_04122012.TX
T" exists in a particular folder (H:\\Temp)
2. If the file exists, it should write it to a log that the "Test File exists"
3. If it does not exists, the script should email me saying "Test Document Not found"
I tried to write a perl script but it is not working as per my expectation. The code is attached.
I have ActivePerl 5.8.8 Build 822 installed on my Windows server 2003 SP2.
Please help !!!!