Have you considered using the Perl debugger?
You're asking how to verify the program's state after each line of code executes. That sounds like stepping through code in a debugger.
There is also Devel::Trace, and other gems like Devel::DumpTrace. The latter would spit out a pretty lengthy logfile for you to chew on.
Dave
In reply to Re^2: How to create a log file?
by davido
in thread How to create a log file?
by anurag_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |