in reply to looking for inspiration on 'compare'
BUTThat sounds fishy, are you sure you're not storing undef? A custom compare subroutine should not effect the values stored (and its most likely that its not).
when i try to read out key/value pairs, i got "undef" on values for which comparison function returned -1.
Any clue on how to make a Compare function different from the one on manual?You already have one, so just like that.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: looking for inspiration on 'compare'
by zioigor (Initiate) on Mar 03, 2005 at 08:36 UTC | |
by PodMaster (Abbot) on Mar 03, 2005 at 08:52 UTC | |
by zioigor (Initiate) on Mar 03, 2005 at 10:40 UTC |
In Section
Seekers of Perl Wisdom