Warning message:
Use of uninitialized value in numeric comparison (<=>) at ...

Code:
foreach (sort { $dHash{$b}{'VAL} <=> $dHash{$a}{'VAL'} } keys %dHash) {

How do I fix? Should my sort function be checking for variable
defined? What do I return on undefined?

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to