http://www.perlmonks.org?node_id=259465

P0w3rK!d has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I am dumping a hash table as follows:

sub myMethod { ... foreach $keyOut (sort {$a <=> $b} keys %hshOut) { ... } ... }
The error is as follows:

Argument "" isn't numeric in sort at C:/Perl/site/lib/Foo/A.pm line 163.

The keys are in the format #.#. How do I get rid of this error without changing my keys?

Thank you :)

-P0w3rK!d