Do you know where your variables are? | |
PerlMonks |
Re: dispatch table of functions and argumentsby bronto (Priest) |
on Sep 03, 2002 at 13:43 UTC ( [id://194764]=note: print w/replies, xml ) | Need Help?? |
Surely using positional parameters causes serious braindamage :-) A solution could be using named parameters (a hash, I mean). For example, parameters for ClickInterval and Exposure could be respectively:
and
Once you compose the %param hash someway, you could end up your code with a simple call:
and each sub will get only the parameters it deserves :-) Ciao!
In Section
Seekers of Perl Wisdom
|
|