in reply to [SOLVED] - Print variable name/value for all program variables
After a quick Google search, I found this interesting thread on Stack Overflow: How can I list all variables that are in a given scope?
Take a look at this code, from the thread:
{ no strict 'refs'; foreach my $entry ( keys %main:: ) { print "$entry\n"; } }
Although, I don't think you can use this "as is", I think this is a good clue for what to look for.
Testing never proves the absence of faults, it only shows their presence.
-- greengaroo
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Print variable name/value for all program variables
by Athanasius (Archbishop) on Nov 08, 2012 at 14:56 UTC |
In Section
Seekers of Perl Wisdom