I’m really new to Ruby, I have been using TCL for a really long time
and I just picked up the “Programming Ruby” book and I really like it.
One very simple thing I do a lot in my TCL scripts is parse the output
from a cmd it would read [split $x \n].
OK, I have a def defined to run my command line app and I want to split
the result at the line ending, how do I do it? I have tried split(\n)
and I get a error.