This is a sample script from the tinyparsers package. It converts Comma Separated Values (CSV) to DokuWiki's Template format (DWT).