Lovell Mcilwain wrote:
> 
> The code I posted is exactly what I ran aside for giving you
> hundrededs of lines of email.  The example is exactly what I ran to
> get the results I posted.
>

emails = File.open("data.txt").readlines.map! {|x| x.chomp}
email.scan(/\S+/)

--output:--
r1test.rb:2: undefined local variable or method `email' for main:Object 
(NameError)
-- 
Posted via http://www.ruby-forum.com/.