Fine tune perl script to make it faster(currently taking more than 30 minutes to process)

Can't Post

Hi,

Need your expert advice on fine tuning the below perl script, which is currently taking more than 30 minutes to extract information from a raw file which has nearly 2million records. Thanks in advance for your help!! Below are the requirements met in the script: 1)Script should scan through a log file and output the final result into a file called "test.txt" 2)It replaces some strings in the log file into more generic terms. 3)It finds the record number of the affected row from the log file and uses this record number to query the main source file for the particular record. 4) It generates a string which now contains information from the logfile and patches it along with the affected row from the source 5) the result is written into the output file test .txt