Hello all, I need to do something, but being new to Perl I'm not sure it's possible or how to do it. I need to remove lines of information from a text file based on information in another file. The first file contains information about some business transactions, each line describing one transaction. The second file is a log file reporting errors occurred during some processing done on the first file. The log file identifies each transaction that failed by its line number in the transaction file. The following is a sample of information in each file
---------- sample log file data ---------- Line no: 1, Field no 5: , Field name: Amount Contents: "L8G 4A7" Error: Only digits and one point allowed ------------------------------------------------ Sample transaction file data: "C1","MA00000000000025610","4111111111111111",...etc. ------------------------------------------------------------ I think I need to extract the line number from log file and use it like an index to the transaction file. I've already done the first part (extract the number) but don't know how to proceed from there. Also, I'm not sure what I'm doing is the best way of solving the problem or perhaps there is a better way. I would very much appreciate any input and suggestions. Thanks a lot in advance.