in reply to Array Sort

That's because it handles each element of your array as string. You probably want this:
... @event_queue = sort { $a <=> $b } @event_queue; ...

BTW: you don't need to explitly assign the $_ operator in the foreach loop. It is done automatically...

Greets,

-- JaWi

"A chicken is an egg's way of producing more eggs."

Replies are listed 'Best First'.
Re: Re: Array Sort
by The_Rev (Acolyte) on Sep 10, 2002 at 11:53 UTC
    That worked!

    I always learn something when I post, like the absence of $_ in a foreach loop
    Thanks Again!