RSS to NNTP gateway

Posted on Aug 11, 2002

I've been experimenting with a small script to take a bunch of RSS/RDF feeds and inject them into newgroups. Perl is a convenient language - libraries for RSS parsing, an NNTP client, etc. all exist and can be downloaded from CPAN. But Perl is full of so much syntactic goop. Sometimes that gives you power, as you can attack problems for a variety of different angles. Then, some things seem clumsy. For example:

$from = $result{'managingEditor'};
if ($from eq "") {
    $from = $result{'webMaster'};
} if ($from eq "") {
    $from = "invalid\@invalid.invalid";