From: Dave Thomas Date: 2000-07-20T21:26:45-05:00 Subject: [ruby-talk:04153] ARGF and line numbers If I have a loop such as ARGF.each_line do |line| # ... end and I invoke the program with ruby dave.rb one two three then as I read through the files, $FILENAME changes to reflect the file being read from. However, $. and ARGF.lineno do not get reset to zero at the start of each file. I can see arguments both ways, but right now I'm favoring a line number that reflects an offset into the current file, rather than the total number of lines read. What do people think? Regards Dave