I am a Java developer, and I have been given Ruby code to understand and later to work on.
I went through the Ruby tutorials on tutorialspoint.com but I can\'t figur
$_ - string last read by gets
$_
gets
[0] is of course, indexing into that string.
[0]
http://www.rubyist.net/~slagell/ruby/globalvars.html