Hi,
I need to cap-and-lowercase words in strings of XML data. Why is this
happening in this test?

stuff = [ "This", "is", "a", "test" ]
stuff.collect { |x| puts x.capitalize! }

I get:

nil
Is
A
Test

Program exited with code 0

What's with the "nil?"

Thanks,
Peter
-- 
Posted via http://www.ruby-forum.com/.