How to debug a perl script

Enter the debugger by:

perl -d scheduledscrape.pl --path="game of thrones" --size=anysize

The script and arguments are invoked just as normal, but preceded by perl -d.
To keep continuing, one line at a time: n
Continue until return from the block: r

When a subroutine is shown, to go into it: Step into: s
When a subroutine is shown, to pass over it: n
When a subroutine is entered, to continue until return value: r

To get the value of a variable (or expression): p expr
Eg:

p $current