in reply to Stopping script execution from within the code like Python's pdb

I vastly prefer the printf / say style of debugging, but if you launch your program with

perl -d

you can stop it at an arbitrary place with

$DB::single = 1;