Hi All!

I am trying to write a program that will try and automate a 'time-table' of sorts where PersonA is assigned to work on TaskX, PersonB->TaskY, PersonC->TaskZ ..and so on. This pattern repeats daily and the tasks can be assigned to different people (not necessarily the same association followed earlier). I'd like to use a hash for this association.

The thing I am doubtful about is this: Being a 'calendar/time table', I need to display this information for each day in a meaningful manner. I have something like this in mind:

Mon,22Apr13:PersonA->TaskX,PersonB->TaskY, PersonA->TaskZ Tue,23Apr13:PersonA->TaskL,PersonD->TaskT, PersonK->TaskQ, PersonP->Ta +skA ... ...

I am not sure how I can generate the calendar values and display information like above. I know I can get the date (or a range of dates) and use them but I'm not able to put both of these together, i.e., the dates and the assignments.

I'm thinking an Array (or List) where in each element will be a hash. Other ideas include using a Hash where the Key is the Date and the Value will be an array with colons separating the Person:Task list. Is this the best way to do it or are there simpler, easier methods to achieve the same result? I'd like to know how I can design this - any help/alternate ideas with the design and structure will be highly appreciated.

Cheers!

In reply to Calendar / Scheduler in Perl by vishi

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.