for profiling perl, just use devel::nytprof. it's an easy to use perl profiler:
when this is done, just point your brower to the locally created ./nytprof/index.html and enjoy the nice reports.$ perl -d:NYTProf my_prog.pl
[... let it run, it will be slower than your usual run ...]
this is the best profiler for perl available currently. in case you missed the point: the perl profiler devel-nytprof is great, use it for your perl profiling needs.