Is there a module I could use to perform the profiling?
Yup. Take a look at Devel::SmallProf.
In reply to Re: Profiling Perl Code by adrianh in thread Profiling Perl Code by ashisht