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