Using the built-in debugger of Perl as REPL

Опубликовано: 08 Октябрь 2024
на канале: Code Maven
7,688
87

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-...

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