vishi has asked for the wisdom of the Perl Monks concerning the following question:
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Calendar / Scheduler in Perl
by blue_cowdawg (Monsignor) on Apr 25, 2013 at 13:03 UTC | |
by vishi (Beadle) on Apr 25, 2013 at 16:24 UTC | |
by blue_cowdawg (Monsignor) on Apr 25, 2013 at 17:40 UTC | |
|
Re: Calendar / Scheduler in Perl
by flexvault (Monsignor) on Apr 25, 2013 at 16:58 UTC | |
|
Re: Calendar / Scheduler in Perl
by BillKSmith (Monsignor) on Apr 25, 2013 at 14:37 UTC |