For automated insertion of text into existing wiki-pages, and creation of new pages.
Example: I get some daily statistics via email (from a cronjob). I would like to publish these automatically on my wiki. So procmail could save such a mail to a textfile, then call the import-script. This script would put the text into the wiki as a new page,
with a name like "Xyz-Stats-2001-05-13", then insert a link to this new page on the main stats page.
echo 'title=Test1&oldtime=992012345&text=Test1+abc%0d%0aXYZ&Save=Y' | lynx -post_data http://www.mydomain.de/cgi-bin/wiki.pl
I contend that this solution is elegant, exactly because it combines existing tools to solve the problem. It's the UnixWay.
Use a placeholder like %stats% and to process it call one of the file opening functions. I've used this for WikiPatches/CSSskins -- Tarquin