in reply to
line no. in a file
The problem is that $. is from the perspective of the debugger.
What you might want to do is keep track of the line number of your file with your own variable.
Comment on
Re: line no. in a file
Replies are listed 'Best First'.
Re: Re: line no. in a file
by
Adam
(Vicar)
on Dec 29, 2000 at 06:40 UTC
or
local
ize $. in your code.
[reply]
In Section
Seekers of Perl Wisdom