in reply to sloooowwwwww code!
See Devel::Dprof is your friend, on using Devel::Dprof to profile your code.