Re: Solutions and Discussion for Perl Quiz of the_Week #1
Kevin Pfeiffer <[email protected]> Fri, 25 Mar 2005 18:42:04 +0100
| Newsgroups | gmane.comp.lang.perl.qotw.discuss |
|---|---|
| Organization | TIROS.NET (Tiros Translations) |
| Message-ID | <[email protected]> |
I just happened to run across this again... Mark-Jason Dominus writes: > Sample solutions and discussion > Perl Quiz of The Week #1 (20021016) > > ---------------------------------------------------------------- > > Write a function, 'center', whose argument is a list of > strings, which will be lines of text. 'center' should insert spaces at > the beginning of the lines of text so that if they were printed, the > text would be centered, and return the modified lines. [...] This was, IMO, a perfect (beginner) quiz; what it looses perhaps due to being a little uninteresting in the task is more than compensated for by the lessons it provides in a great follow-up analysis. -K -- Kevin Pfeiffer <[email protected]> Tiros-Translations