http://www.perlmonks.org?node_id=1041344


in reply to Parsing an SQL table using an array of hashes?

An appropriate data structure would be

$data{$problem}{$year}{$month}=$count

you could also go for

$data{$problem}{"$year-$month"}=$count

Now what is the real question?

How to get the input from SQL or how to get the output to GD::Graph ?

Cheers Rolf

(addicted to the Perl Programming Language)