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
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
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 %
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