in reply to what does its output mean...whats it do?
Function prototypes can be used to mimic a built-in function and allow the omission of parens. When first learning Perl, I though oh, how cool. As it turns out, this isn't cool - its a bad idea. Perl is so loosely typed that you just don't gain much in the way of argument checking. And because the prototype has to be seen before you make a call to that function, you wind up either placing the subs before main, or putting a duplicate prototype definition before main. This is a hassle. Perl is already very loose about allowing the omission of paren's, some would argue too loose! Having to use parens when calling your own functions as opposed to a built-in is no big deal.
I would recommend that you stay away from prototypes - I think most folks would too.
|
|---|