P0w3rK!d has asked for the wisdom of the Perl Monks concerning the following question:
I am dumping a hash table as follows:
The error is as follows:sub myMethod { ... foreach $keyOut (sort {$a <=> $b} keys %hshOut) { ... } ... }
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Hashing: Argument "" isn't numeric in sort
by hardburn (Abbot) on May 20, 2003 at 14:35 UTC | |
by P0w3rK!d (Pilgrim) on May 20, 2003 at 14:56 UTC | |
by Joost (Canon) on May 20, 2003 at 15:16 UTC | |
Re: Hashing: Argument "" isn't numeric in sort
by Joost (Canon) on May 20, 2003 at 14:37 UTC | |
Re: Hashing: Argument "" isn't numeric in sort
by edoc (Chaplain) on May 20, 2003 at 15:43 UTC |