Re: newbie sort question

2006-04-03 Thread Val Genova
thanks this solved my problem my @output_sorted = sort { (split /,/, $b)[0] <=> (split /,/, $a)[0] } @output; thanks to all that helped Jeff Pang <[EMAIL PROTECTED]> writes: > >>this is my friend's script >> >># collect all score >> my @output = (); >> my @old_output = (); >> for

newbie sort question

2006-03-23 Thread Val Genova
am a real newbie to perl I have a friend who wrote this program which outputs the scores of my friends the code works and outputs the correct scores and arrangement of the scores but im having this error on my http/error_log, this is the error: [Thu Mar 23 16:43:28 2006] [error] [client 203