On 8/3/07, Amichai Teumim <[EMAIL PROTECTED]> wrote:
snip
> sub sumIt(@)
snip
> sub avg(@)
snip

Ack prototypes!  They don't do what you think they do.  Don't use them
until you have read
http://library.n0i.net/programming/perl/articles/fm_prototypes and
understand it fully.  Prototypes are very useful in specific areas and
harmful or a waste of your time in all others.  Perl 6 is adding
formal parameters (which is what people mistake prototypes for), so
this will not be a problem in it.

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


Reply via email to