11.3. Executing Perl Commands inside the Debugger

One can execute perl commands inside the debugger. For example, typing print $a at the debugger prompt will print the value of the $a variable. You can also modify the values of variables in this way, or run functions, etc.

One special command that is also useful is x. x $var displays $var in a hierarchial manner, which is very useful for lists of lists etc. The Data::Dumper module which is available from CPAN offers a similiar functionality, from within your perl programs.


Written by Shlomi Fish