I am new to perl and I was wondering if some one could tell me a good place to look for information about reading in text files and formating them.
I wrote a backup program that backs up a database it creates a log file like this each day it looks like this
19 Feb 2001.txt
---------------------------------
(2149 of 2149 pages, 100% complete)
(44 of 44 pages, 100% complete)
Transaction log renamed to: e:\backup\data\01021900.LOG
Database backup completed
----------------------------------------------------
The 4th line should say "Database backup completed" if it does not then I know there is a problem so I was thinking I could write a program to read in that file and say if 4th line doe not = Database backup completed call a sub that sends a email I have written the email part that was easy but now I would like to find some info about reading in txt files in perl or maybe a way to format the txt file and to put it in a HTML table.
Ideas Pointers ?
I wrote a backup program that backs up a database it creates a log file like this each day it looks like this
19 Feb 2001.txt
---------------------------------
(2149 of 2149 pages, 100% complete)
(44 of 44 pages, 100% complete)
Transaction log renamed to: e:\backup\data\01021900.LOG
Database backup completed
----------------------------------------------------
The 4th line should say "Database backup completed" if it does not then I know there is a problem so I was thinking I could write a program to read in that file and say if 4th line doe not = Database backup completed call a sub that sends a email I have written the email part that was easy but now I would like to find some info about reading in txt files in perl or maybe a way to format the txt file and to put it in a HTML table.
Ideas Pointers ?