in reply to Line number in a file
When you read the file line by line, $. will give you the current linenumber.
If you just slurp it, you'll have to set up a counter.
|
---|
In Section
Seekers of Perl Wisdom
in reply to Line number in a file
|
---|