perl -d script.pl
n     next line
s     step into a subroutine call
c     continue running until the next breakpoint
p $var  print a variable's value
q     quit the debugger
