Origin

Once a friend came out with a wiki project. He wanted to code something on his own, and done so in C++. It took him well over a thousand lines to make something usable. Then I wanted to check, how many lines do I need to make a wiki in Perl. I spent one afternoon in September 2005 on it.

Description

NanoWiki is just what it is meant to be - a minimalistic wiki engine. It uses only quite basic modules as DBI and CGI. It's 20 lines (1371 bytes with meaningful variable names, 14 semicolons) in what I perceive as 1 command/line, although if you want it pretty it's best reformatted at about 35 lines (at least what I perceive pretty ;) ). It was developed with using strict; but I took it out while reformatting to 20 lines. Also I believe it doesn't contain holes that could harm the server running it. On the other hand, it allows anyone to put any code on it, so I expect to see some XSS or malicious things appearing after some time. If I ever feel the need, I will make it secure and comfortable for the user, and maybe I could fit that in 100 lines :)

Download

Source code, nicely highlighted.
Source code, downloadable.