File: update_rss.pl

package info (click to toggle)
libxml-rss-perl 1.33-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 640 kB
  • ctags: 205
  • sloc: perl: 5,976; xml: 245; makefile: 42
file content (18 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl -w
# update_rss.pl
# Adds a new item to the RSS file
use strict;
use XML::RSS;

die "Syntax: update_rss.pl source.rdf destination.rdf\n\n"
	unless @ARGV == 2;

my $rss = new XML::RSS;
$rss->parsefile(shift);

$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(shift);