good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Best Data Structure for passing in multiple arguments to a sub-routineby ~~David~~ (Hermit) |
on Mar 13, 2007 at 15:39 UTC ( [id://604580]=perlquestion: print w/replies, xml ) | Need Help?? |
~~David~~ has asked for the wisdom of the Perl Monks concerning the following question:
Right now, I have a long, and non-reusable peice of code that builds a power point presentation for me. I was thinking about how I can make it better so that as my project evolves / changes, I have to do minimal re-writing.
I would like to make a subroutine that takes certain arguments, and creates my slides for me, for instance, I would like to be able to pass something like this:
What is the best data structure to use to accomplish this goal? Can I make this with a hash of hashes?
~~David~~
Back to
Seekers of Perl Wisdom
|
|