Rob Richardson wrote: > > --- Peter Scott <[EMAIL PROTECTED]> wrote: > > > > (2) If you want to sort the keys of a hash, there's no need to put > > them into an array. sort takes a list as input: > > > > return sort { $a->GetCrewCall cmp $b->GetCrewCall } keys %self > > Since I am not using the keys of the hash, the above line won't work > for me.
If you want to sort the hash based on the values in the hash: return sort { $self{$a}->GetCrewCall() cmp $self{$b}->GetCrewCall() } keys %self; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]