Dumpvalue

The Dumpvalue module is used to provide a screen dump of Perl data. Whether you’re trying to look at global variables or you’d like to dump the symbol table so that you can examine it, Dumpvalue will prove useful to you. Here’s an example that dumps the symbol table of CGI.pm:

#!/usr/local/bin/perl -w

use Dumpvalue;
use CGI qw(:all);

my $dumper = Dumpvalue->new('DumpPackages' => 1);

$dumper->dumpvars('CGI');

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.