Perl Debugging Notes:
perl -d <perl_file>
h - help
q - for quit
l - listing of code / l 70-80
v - view lines around
s - step in- execute the line
t - where i m in the code
n - next step
b <linenum> - To set line breal point
p $var - to display the value of $var
p defined $var - to find $var is defined or not
To List installed perl module
perl -MTime::Piece -e "print \"Module installed.\\n\";"
perl -MTime::Piece -e 1
Last updated 8 days ago by Rajesh Kumar