m at line: $line_number_in_the_script");
>
> --- more code -
>
>
> Sub DebugLog()
> {
> my ($line) = @_;
> print "$line\n";
>
> }
>
>
> I could paste these throughout my code and not worry about where they
> end up.
>
> Any ideas?
N
gregg wrote:
>
> > I have a debug log subroutine that I copy and paste into different
> > Perl modules as I am working on them. It occurred to me that it would
> > be very useful to log the line numbers to the file as a better means
> > of keeping track of what a script is doing, and finding the
I have a debug log subroutine that I copy and paste into different
Perl modules as I am working on them. It occurred to me that it would
be very useful to log the line numbers to the file as a better means
of keeping track of what a script is doing, and finding the location
using the vi edito