l2c.pl – Lines to Columns

Here is a little perl script I wrote some time back for converting a text file’s contents from lines to columns.

I’d like to present this script and then psuedo-challenge other visitors of this site to write a more efficient algorithm in the language of their choice. Unfortunately, any way (that I know of) for measuring the efficiency of two or more algorithms across different languages is going to be skewed due to differences in efficiency of compilers, interpreters and what not.

Read More