M
Michael Goerz
Hi,
is there a way to print the line number of the line that is currently
executed in a perl script (similar to the $. variable), so that I can
use it in debugging messages, like this:
[... perl code ...]
$i = 5; print ('The value of $i changed to ', $i, "at line ",
$current_line, "\n") if $DEBUGGING;
[... perl code ...]
Thank,
Michael
is there a way to print the line number of the line that is currently
executed in a perl script (similar to the $. variable), so that I can
use it in debugging messages, like this:
[... perl code ...]
$i = 5; print ('The value of $i changed to ', $i, "at line ",
$current_line, "\n") if $DEBUGGING;
[... perl code ...]
Thank,
Michael