Perl: the Markov chain saw | |
PerlMonks |
Re: Predefining sub Parametersby bageler (Hermit) |
on Jun 22, 2005 at 17:31 UTC ( [id://469109]=note: print w/replies, xml ) | Need Help?? |
of course, you can't have an array as a second parameter if you expect scalar params later in the list, so you'd want to pass an arrayref to line things up like that.
You might check for appropriate values like this: Or you might pass your data as a hash, and check that the appropriate keys are there.
In Section
Seekers of Perl Wisdom
|
|