It's been a few years since I've used perl, or programed at all really, and my memory is not what it once was. Basicly my situation is that I have a log file of SQL update commands and I need to recreate the table from scratch. Here's the kicker though. The only time I want to change an Update statement into an Insert statement is the first time the key shows up and when a single field has changed value. That's the first problem. The second problem is that I need to be able to completely restructure the command due to the fact that an Update looks like:
I'm just drawing a complete blank. I'd appreciate any pointers or even a direction to look in.