I am somewhat confused as to when to prototype a subroutine.  Under the
tips section Programming Perl makes the following points:

        1.  Prototyping can lead to inlined functions which increases the speed
of commonly used functions.  Prototype when you can.
        2.  As soon as somebody uses your function in a way it wasn't supposed
to be used, your program can explode.  Never prototype.

(This is not verbatim -- but it's the same general idea)

Can anyone go more in depth about the pros and cons of prototyping?

Thanks in advance,

Dan



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to