in reply to Getopt::Long error

I can't reproduce that result. I get $VAR1 = {}; when I run your code. (I'm using perl v5.12.3 on amd64-linux with Getopt::Long 2.38).