Re: beginner's question => vs = and nil vs null

1. '=>' is used when assigning a value to a key in a Hash like that:

h1 = { "a" => 1, "c" => 2 }

'=' is used to assign a value (on the right) to a variable (on the left). The priciple is the same in all the programming languages.2. Null is generally a value. In Ruby nil is an object, or more exactly "The class of the singleton object nil. ", see Ruby API for more details.