in reply to Re: Re: Re: How'd they do that...proportional horz. bars in poll results...
in thread How'd they do that...proportional horz. bars in poll results...

Typos, typos.... foreach my $key ( sort {$results->{$b} <=> $results->{$a}} keys %$results ) {

Note that we access our hash $results->{'some_key'} as $results is a reference to the hash. So too the %$results notation to dereference $results and give us the hash. If you just have a plain hash %results your code will look like:

foreach my $key ( sort {$results{$b} <=> $results{$a}} keys %results ) + {

You will need to change the other -> derefereces too if that is the case.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print