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. For example, center("This", "is", "a test of the", "center function"); should return the list: " This", " is", " a test of the", "center function" because if these lines were printed, they would look like: This is a test of the center function ---------------------------------------------------------------- Some notes: * I'll post an example solution here on Monday. * perl-qotw will only carry the quizzes and solutions. Discussion, remarks, comments, and soforth should go to perl-qotw-discuss@plover.com. To subscribe to that list, send mail to perl-qotw-discuss-subscribe@plover.com. * I'd like to request that nobody post any sample solutions or other spoilers to the discussion list until at least Saturday. * Even after Saturday, any solutions or other spoilers should always be marked with the word SPOILER in the subject line, so that other people won't see them by accident. * If you'd like to contribute a quiz question, send it to me. * I will set up a web archive eventually. In the meantime, old messages are always available by email. Send a message to perl-qotd-help@plover.com (or to perl-qotd-discussion-help@plover.com) for instructions. Thanks.