in reply to Re: Line number in a filein thread Line number in a file
the script writer had changed the value of $/.