[Kc] subroutine parameter list

James Carman developer at peelle.org
Wed Apr 9 10:14:33 PDT 2008


Hey all,

Is it possible to do something like:


&param_test("somestring", "another_string" $arrayref);

sub param_test($tom; $george; @$array) {
     print $tom;
     ....;
}


#################
I am wanting to Specifiy how many arguments to take. Also I want to specify the name of the arguments. And also if possible the type of the arguments.

Thanks!

James J. Carman


More information about the kc mailing list