Using the built-in debugger of Perl as REPL
Channel: Code Maven
Date: 2011-06-22

The command line debugger that comes with perl is very powerful.
Not only does it allow us to debug script but it can be used as a REPL - a Read Eval Print Loop to explore the capabilities of the language. There are a few basic examples in this screencast.

http://perlmaven.com/using-the-built-in-debugger-of-perl-as-repl

To see all the Perl tutorials visit http://perlmaven.com/perl-tutorial

About Perl Programming and Perl programmers.

In this screencast:

  perl -de1

  p - print scalar
  x - print data structure
  b subname - set breakpoint