Hi Perl Gurus,
I have a text which look like
20 Dec 2010 | Completed | ABC
20 Dec 2010 | Completed | DEF
20 Dec 2010 | Completed | GHI
19 Dec 2010 | Completed | JKL
You can see that the file have three columns first column is date column second column is a Status and the third column is a job name column now i want to check the first column of the above file (i.e., date) and wants to compare the date of file with current system date or day-1 , day-2 or day-3 date if the date in file is equal to the current date or file date is equal to day-1, day-2 or day-3 date the add 1 in the total successfull job and if the date is not equal to current date or if date not equal to day-1, day-2 or date-3 date then change the status of column two (i.e., completed) to 'Did not Run'after the changing the status of job to 'Did not run' add 1 in the counter of failed jobs furhter more i also want the name of jobs there were failed i.e., the values of column3.
and here is for what kind of output i am looking for
Total Successfull jobs = ''
Total Failed Jobs = ''
Name of Failed jobs are '','','',''
Although i have written few lines but i am unable to get this done please help me out to complete this program.
Thanks in advance