Re: Need help to fine tune perl script to make it faster( currently taking more than 30 minutes)by space_monk (Chaplain)
|on Nov 14, 2012 at 04:34 UTC||Need Help??|
Others have given you most of the answer, but it also looks as though you're pulling the record number out by some incredibly convoluted process. What is wrong with something like:
This checks for matching lines and pulls the record number out at the same time...
Note that the regex in the above may not be quite right as your original seems to back up 6 characters from the ':', but the regex can be amended to do that too.
A Monk aims to give answers to those who have none, and to learn from those who know more.