Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: Pearls (not really) of Perl programmingby ysth (Canon) |
on Nov 24, 2004 at 23:53 UTC ( [id://410284]=note: print w/replies, xml ) | Need Help?? |
This seems to rely on luck as the block may yield "" which sort is not advertised to accept.That code always returns 1 or -1 AFAICT. Can you explain? Update: it will return false if $a or $b isn't any of the types tested for, but false isn't "", it's both 0 and "":
In Section
Meditations
|
|