This is why you are getting the uninitialized error.
On line 8, you are simply declaring your variables. As the Camel book explains, when you use "my" to declare variables, they default to
. In lines 17-28, if the hash values are empty, they will return
.
You can correct this by explicitly assign a value to each variable on line 8 or by testing the variable assignment values on lines 17-28 before trying to print them on line 33.