To run script in debug mode you should add -d
option in the command line:
$perl -d script.pl
If t
is specified, it indicates to the debugger that threads will be used in the code being debugged:
$perl -dt script.pl
Additional info at perldoc
perlrun