Just another Perl shrine | |
PerlMonks |
Re: Functions Signaturesby Abigail-II (Bishop) |
on Jul 17, 2003 at 12:10 UTC ( [id://275186]=note: print w/replies, xml ) | Need Help?? |
You can always declare subs:
It doesn't show what kind of arguments it expects, because the definition of the sub doesn't see so either. You could use prototypes, but be aware of the results. Prototypes aren't as useful as you may think. If you use prototypes, write:
but then you have to repeat that prototype when defining the function:
Abigail
In Section
Seekers of Perl Wisdom
|
|