--0-1900874764-1151704309147
Content-Type: text/plain; charset=us-ascii

Hi,
I have a question...

Why the below snippet,

["foo","bar","baz"].each do |s| 
    m  ^ba(.*?)$/.match(s) 
    puts m[0]
end
 
 gives the following error?

test.rb:8: undefined method `[]' for nil:NilClass (NoMethodError)

Regards,
Volkan


--0-1900874764-1151704309147--