"Perl for Perl Newbies" - Part 2Using the perl DebuggerExecuting Perl Commands inside the Debugger

11.3. Executing Perl Commands inside the Debugger

One can execute perl commands inside the debugger. For example, typing print $xat the debugger prompt will print the value of the $xvariable. 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 $vardisplays $varin a hierarchical manner, which is very useful for lists of lists etc. The Data::Dumpermodule which is available from CPANoffers a similar functionality, from within your perl programs.

Written by Shlomi Fish