Actions
Bug #15910
closed$. doesn't hold the linenumber anymore when reading a CSV-file using the CSV class
Description
Example program:
require 'csv'
IFS=';'
CSV_OPTIONS = { col_sep: IFS, external_encoding: Encoding::ISO_8859_1, internal_encoding: Encoding::UTF_8 }
CSV.new($stdin, CSV_OPTIONS).each do
|row|
puts "::::line #{$.} row=#{row}"
end%
With this program, I could dump a semicolon-delimited CSV file, with line numbers. Now the line number always displays as 0. Has the implementation of CSV changed?
See also https://stackoverflow.com/questions/56524941/is-special-variable-gone-from-ruby
Actions
Like0
Like0Like0