File: update_rss.pl

package info (click to toggle)
libxml-rss-perl 0.8-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 148 kB
  • ctags: 18
  • sloc: perl: 687; makefile: 46
file content (16 lines) | stat: -rwxr-xr-x 374 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl -w
# update_rss.pl
# Adds a new item to the RSS file
use lib '.';
use strict;
use XML::RSS;

my $rss = new XML::RSS (version => '0.9');
$rss->parsefile("fm.rdf");

$rss->add_item(title => "MpegTV Player (mtv) 1.0.9.7",
               link  => "http://freshmeat.net/news/1999/06/21/930003958.html",
	       mode => 'insert'
	       );

$rss->save("fm2.rdf");