From: "Erin J." Date: 2011-12-05T07:48:21+09:00 Subject: array to string conversion 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! -- Posted via http://www.ruby-forum.com/.