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.

Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a yourname@perl.me.uk? Just ask!!!

In reply to GD::Graph::linespoints - References by ghenry

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.