Jerome Quelin <[EMAIL PROTECTED]> wrote in perl.fwp : > Hi folks, > > We were wondering if the referees were to provide a naive solution for > perlgolf contests? This way, beginners could really see what the script is to > do (remember Ton's Christmas tournament where only one beginner managed to > provide a working solution - and thus, won). > Otoh, I can imagine golf holes where such a solution would be too much a > hint... > > Of course, the naive solution would be _very_ naive (and trust me, it's > really hard to write such a solution without using perl shortcuts ;) ).
Providing a naive solution may be also a good way to specify the required behavior, for a complex problem. To produce "naive" code, you can try to write C-like code : C-style for loops, no push() or pop(), but instead indexed access to arrays, prefer substr() over regular expressions, etc. (But use C constructs with moderation. Avoid printf ;-)
