perl_devel has asked for the wisdom of the Perl Monks concerning the following question:
In function there is a way to denote number of parameters (eg)
Is there is a way to denote the type of parameters too ? Like 1st argument should be scalar and 2nd argument should be array.sub callmeth($$){ $arg_method=shift; @arg_meth=shift; }
Regards
perl_devel
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parameters to functions
by dragonchild (Archbishop) on May 12, 2005 at 13:20 UTC | |
|
Re: Parameters to functions
by Animator (Hermit) on May 12, 2005 at 13:18 UTC | |
by Forsaken (Friar) on May 12, 2005 at 18:12 UTC | |
|
Re: Parameters to functions
by tlm (Prior) on May 12, 2005 at 13:33 UTC | |
|
Re: Parameters to functions
by sh1tn (Priest) on May 12, 2005 at 13:22 UTC |