On Tue, Aug 4, 2009 at 23:07, Dave Tang<d.t...@imb.uq.edu.au> wrote: > On Wed, 05 Aug 2009 12:55:22 +1000, Chas. Owens <chas.ow...@gmail.com> > wrote: > > snip >> >> In this case it is telling Perl that compare expects two scalars as >> arguments. > > snip > > Now the compare($$) makes much more sense. > > snip >> >> There are many [pitfalls][2] to prototypes and they should really not be >> used unless you have a really good reason. >> >> [1] : http://perldoc.perl.org/perlsub.html#Prototypes >> [2] : http://www.perl.com/language/misc/fmproto.html >> > > I will have a read of these along with John's link. snip
They are actually the same article by Tom Christiansen. Just different formats. And perldoc perlsub is the same document you get at http://perldoc.perl.org/perlsub.html. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/