If you don't mind me asking, why would you use a hash-table for something like that instead of a single %variable?
Also, isn't $whatever isnum 1- the same as $whatever > 1 ? (only makes it harder to read the code imho except if I'm missing something)

Maybe I wake up one day to notice that all my life was just a dream!