in reply to perl5 "prototyping": why?

The section "Prototypes" from the sample chapter from TheDamian's new book Perl Best Practices contains the best description of prototypes I've seen. It describes why prototypes should not be used, with examples, so you will hopefully find it useful background reading for your current task.

Replies are listed 'Best First'.
Re^2: perl5 "prototyping": why?
by mugwumpjism (Hermit) on Jul 08, 2005 at 04:42 UTC

    Let's hope like hell that this doesn't get cargo-culted into twerps claiming that the function signatures in Perl 6 shouldn't be used. Because to me, having those is the best new feature of Perl 6.

    $h=$ENV{HOME};my@q=split/\n\n/,`cat $h/.quotes`;$s="$h/." ."signature";$t=`cat $s`;print$t,"\n",$q[rand($#q)],"\n";