Krish: Before posting questions, you should at least check the basic documentation. One way to find something is perldoc -q <something>. The flag -qstarts a keyword search through frequently asked questions.
So for example perldoc -q profile:
Found in /usr/local/lib/perl5/5.10.0/pod/perlfaq3.pod
How do I profile my Perl programs?
You should get the Devel::DProf module from the standard distribution
(or separately on CPAN) and also use Benchmark.pm from the standard
distribution. The Benchmark module lets you time specific portions of
your code, while Devel::DProf gives detailed breakdowns of where your
code spends its time.
And it continues from there.
source
share