in reply to berkely database fun

Assuming you just want the first two sorted values, just change the foreach line to:
foreach my $event_id (( sort { $Sorts{$sortBy}->() } keys (%database) +)[0,1]) { # Put the sort call in parens, followed by [] for whatever elements # you want
Hope this helps,

Russ

Replies are listed 'Best First'.
RE: RE: berkely database fun
by Anonymous Monk on May 21, 2000 at 22:04 UTC
    Thanks, I'll try it - can't wait until I am able to provide assistance for others.. sean
      No problem.

      Helping people is a simple matter of being willing to try (and recognizing that you will be flamed every now and then). :-)

      Jump on in here...

      Russ