Both have different goals. The debugger is optimized to debug an already written Perl script / program. While the main objective of REPL is to provide fast language feedback and optimization for interactive input (developers).
For example, if I do the following in the Perl debugger:
DB<1> for my $x (1..10) {
I get the error Missing right curly or square bracket at (eval 5)...
While Devel::REPL allows you to use multiple lines:
$ for my $x (1..3) { > say $x; > } 1 2 3
I fully recommend Devel::REPL , and with additional plugins it will become a convenient development tool that will work next to your editor.
/ I3az /
draegtun
source share