Re: Strange question...

2003-03-29 Thread Rob Dixon
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

Re: Strange question...

2003-03-29 Thread Stefan Lidman
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

Strange question...

2003-03-29 Thread gregg
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