For a program to take 66.7 seconds to scan and parse dozens of files, then build a relational database from the results isn't that long. But the problem with Perl programmers is they're so full of hubris, they always think they can do better. Well, actually we have a way of proving we could do better: the Devel::DProf module, that comes in the standard distribution. Have a script that isn't impressing you with it's speed? Try this...
perl -d:DProf your_script_here.pl dprofpp tmon.out
This will run the script and create a detailed report of how much time it spent on each task. From this I could see that 78% of that time was spent committing inserts to a database. After a little rearranging I reduced the number of commits down to one. Now the same script completes in only 4.5 seconds. That's about 14 times faster! But I never would have known where the problem was without the profiler.
