http://qs1969.pair.com?node_id=797717


in reply to Re^2: A Semi-automatic word search solver
in thread A Semi-automatic word search solver

Prototypes in Perl are very special. They are not --as many people expect-- a tool to check at compile-time or even run-time wether the parameters of your subroutine call are correct. Have a look at Gratuitous use of Perl Prototypes, it explains clearly why Perl "prototypes" are totally different from (for example) C "prototypes".

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re^3: A Semi-automatic word search solver

Replies are listed 'Best First'.
Re^4: A Semi-automatic word search solver
by The Hindmost (Scribe) on Sep 26, 2009 at 21:54 UTC
    Thanks, that does clear it up for me, coming from a C(++) background prototyping had just become a default behaviour like putting #!/usr/bin/perl at the top of every bit of perl code has.