|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Ho wo create single BIG program with all values of variables by parsing a perl programby jethro (Monsignor) |
| on Mar 22, 2012 at 12:24 UTC ( #960994=note: print w/ replies, xml ) | Need Help?? |
|
Have you looked at the built-in perl debugger. You can print out all lexical variables with the y command, all non-lexials with V or X. With w you can get a message whenever a specific variable changes its value. You can single-step through the code and automatically do something (like y or V) before each prompt with the '<' command. Read "perldoc perldebug" and wonder at all the things you can do ;-)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||