See the recent thread USAGE OF Prototype for further discussion and some examples of why prototypes might make your life miserable. You may expect that prototypes will help prevent bugs, but unless you know exactly what you are doing and why, prototypes can actually create more bugs than they prevent.
If you still want to use prototypes after you have read that thread and moritz's links above, perlsub has a description of the prototype syntax and some examples.
Best, beth
In reply to Re: subroutine prototype in Perl
by ELISHEVA
in thread subroutine prototype in Perl
by pavunkumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |