in reply to Dump of all defined variables for debugging

Take a look at Devel::Symdump It can let you dump the contents of the symbol table.

-imran

  • Comment on Re: Dump of all defined variables for debugging

Replies are listed 'Best First'.
Re^2: Dump of all defined variables for debugging
by kr123 (Novice) on Feb 21, 2006 at 19:43 UTC

    Excellent.. Devel::Symdump gives me the list of variables. Unfortunately I'm having problems feeding that list into Data::Dumper so I can actually see the elements of all the variables.

    Know any tricks to this? If not my alternative may just be to do it the hard ware and manually input all of the defined variables.

      Here's some old code that might help: %main:: and my'd vars
      It walks through the %main:: symbol table and uses Data::Dumper to print out all arrays, hashes, scalars, and sub names.

      -Joe