Anyway perlsub mentions prototypes and gives some good examples from which I infer that prototypes in perl subroutines are used to impose a data type on the attributes or arguments to the subroutine, i.e. as some kind of restriction to force data into either scalar, list, etc format. Is this correct and what other uses would prototypes have?
In reply to The purpose of prototypes in perl subroutines by Plotinus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |