in reply to Passing a variable recursively

If I understand you correctly, tobyink's reply fits pretty well. One more thing to note, however, is that there already exists a plethora of Perl logging modules, many of which will probably do what you want.

If you're mainly doing this as a learning exercise, however, then, again, tobyink left you some valuable advice.

Replies are listed 'Best First'.
Re^2: Passing a variable recursively
by timtowtdi (Sexton) on Nov 05, 2012 at 14:20 UTC
    Thank you too!

    I will definitely take a look at plethora logging modules! My main goal now is to understand tobyinks post, but just for this situation, these modules might could help me out too.
    The great mistake is to anticipate the outcome of the engagement; Let nature take it's course, and your tools will strike at the right moment.