ghenry has asked for the wisdom of the Perl Monks concerning the following question:
Dear Master Monks,
In GD::Graph::linespoints - Various questions, you can see my basic script. The problem now, is that I want to add 4 weeks worth of graphs and keep this going for the rest of the year.
If I wanted to keep the rest of the years data in the script (to begin with, I'll move it out later) are references the best way to do this? A HoHs?
e.g (I have forgotten to add Sat and Sun:)
my $times = { "May" => { "wk1" => { Mon => "24.50", Tues => "23.40", Wed => "22.40", Thu => "25.01", Fri => "24.10", }, "wk2" => { Mon => "24.50", Tues => "23.40", Wed => "22.40", Thu => "25.01", Fri => "24.10", }, "wk3" => { Mon => "24.50", Tues => "23.40", Wed => "22.40", Thu => "25.01", Fri => "24.10", }, "wk4" => { Mon => "24.50", Tues => "23.40", Wed => "22.40", Thu => "25.01", Fri => "24.10", }, }, "Jun" => { "wk1" => { Mon => "24.50", Tues => "23.40", Wed => "22.40", Thu => "25.01", Fri => "24.10", }, "wk2" => { Mon => "24.50", Tues => "23.40", Wed => "22.40", Thu => "25.01", Fri => "24.10", }, "wk3" => { Mon => "24.50", Tues => "23.40", Wed => "22.40", Thu => "25.01", Fri => "24.10", }, "wk4" => { Mon => "24.50", Tues => "23.40", Wed => "22.40", Thu => "25.01", Fri => "24.10", }, }, "Jul" => { "wk1" => { Mon => "24.50", Tues => "23.40", Wed => "22.40", Thu => "25.01", Fri => "24.10", }, "wk2" => { Mon => "24.50", Tues => "23.40", Wed => "22.40", Thu => "25.01", Fri => "24.10", }, "wk3" => { Mon => "24.50", Tues => "23.40", Wed => "22.40", Thu => "25.01", Fri => "24.10", }, "wk4" => { Mon => "24.50", Tues => "23.40", Wed => "22.40", Thu => "25.01", Fri => "24.10", }, }, };
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: GD::Graph::linespoints - References
by polettix (Vicar) on May 16, 2005 at 16:07 UTC | |
by ghenry (Vicar) on May 16, 2005 at 16:13 UTC | |
by polettix (Vicar) on May 16, 2005 at 16:24 UTC |