http://www.perlmonks.org?node_id=960994


in reply to Ho wo create single BIG program with all values of variables by parsing a perl program

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 ;-)