in reply to How to track variable usage in a script?
(Note: Coded but not tested.)sub debug { my @vars = @_; my $i; foreach (@vars) { print("Var $i = $_\n"); } print("\n"); return(1); }
My calls look like debug("Location", $arg1, $arg2, ....) for however many args you want; I just cut and paste the routine all over the place. (This is as close as I can come to a PL/1 "Put Skip Data".)
We are all Novices in the Monestary.
----
I Go Back to Sleep, Now.
OGB
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to track variable usage in a script?
by Abigail-II (Bishop) on Mar 22, 2004 at 16:56 UTC | |
|
Re: Re: How to track variable usage in a script?
by Scarborough (Hermit) on Mar 22, 2004 at 16:58 UTC |