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 figure out what $_[0] is.
It is being assigned to a variable in the code, and it is definitely not a command-line argument because I wrote code to test that and it failed. So, can anyone say what the significance of it is?