[Kc] subroutine parameter list
Andy Lester
andy at petdance.com
Wed Apr 9 11:39:30 PDT 2008
On Apr 9, 2008, at 12:14 PM, James Carman wrote:
> Hey all,
>
> Is it possible to do something like:
>
>
> ¶m_test("somestring", "another_string" $arrayref);
>
> sub param_test($tom; $george; @$array) {
> print $tom;
> ....;
> }
Probably the "standard"ish way to do it is with Params::Validate.
It's a runtime check, though, not a compile-time check.
--
Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance
More information about the kc
mailing list