Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Variables as a variable name... (I know you shouldn't but...)by broomduster (Priest) |
on Aug 14, 2008 at 10:05 UTC ( [id://704316]=note: print w/replies, xml ) | Need Help?? |
Hashes are a good way to have what you want. The data you show can be easily collected into a multi-layer hash, with ProductionLine as the top-level key, DayOfWeek as the second-level key, and Output as the value. (You can flip the top- and second-layer keys if it is more convenient to think of the data that way; I like the ProductionLine at the top, especially if you are going to end up plotting based on Line).
The code snippet below should get you started. You should also have a look at perldsc and perlreftut for some basic training in complex data structures in Perl.
Output:
In Section
Seekers of Perl Wisdom
|
|