Re: Sorting a hash

2004-10-04 Thread Gunnar Hjalmarsson
Octavian Rasnita wrote: Gunnar Hjalmarsson wrote: You don't need another hash. perldoc -f sort perldoc -q "sort a hash" my @codes = sort { $comp{$a}{$year}{profit} <=> $comp{$b}{$year}{profit} } keys %comp; I have tried that, but it gave me an error

perl.beginners.cgi Weekly list FAQ posting

2004-10-04 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email addres

Re: Sorting a hash

2004-10-04 Thread Octavian Rasnita
From: "Gunnar Hjalmarsson" <[EMAIL PROTECTED]> > >> You don't need another hash. > >> > >> perldoc -f sort > >> perldoc -q "sort a hash" > >> > >> my @codes = sort { > >> $comp{$a}{$year}{profit} > >> <=> > >> $comp{$b}{$year}{profit} > >> } keys %

RE: undefined value error

2004-10-04 Thread Bob Showalter
Xiangli Zhang wrote: > Here is my updated code with errorHTTP 500 that did not happened for > the old code, and the modules I am using. n.b. that "Error 500" is just a "catch-all" error from the web server. If other error messages from your script were output, you will find them in the web server