I have an array called l that contains 161 lines of text. I created it
using l = Array.new and then listing the lines of text. I then wanted to
convert it to a string (called f) so I could apply downcase, gsub, and
split to it. I used these lines:
f = l.to_s
f.downcase.gsub(/[.,-1234567890;:’"()]/, ’ ').split = FedPaper1
However, I keep getting an “undefined local variable or method ‘f’ for
main:Object (NameError)”. What can I do to fix it? Thanks in advance!