#!/usr/bin/perl use LWP::Simple; use XML::RSS; use strict; # the actual value of this variable should be the URI for your RSS # file as given on the developer home page ("etc" should be # your unique ID string) # NOTE: if you're using a locally cached version, change this URI # to point to the location of the local file (e.g., /var/tmp/rss/ratings.rss) my $rssfile = "http://www.macupdate.com/rss/ratings.rss?id=etc"; my $PROGRAM_TO_DISPLAY = "Your Program Name"; ## utility subroutines sub write_item { my $item = shift; my $rating = $item->{'description'}; my $formattedRating = sprintf("%.1f", $rating); # display rating with 1 decimal pt my $starsRating = round($rating * 2) / 2; # calculated nearest-half rating my $stars = ($starsRating >= 1) ? "http://www.macupdate.com/images/stars${starsRating}.gif" : "http://www.macupdate.com/images/stars0.gif"; my $link = $item->{'link'}; # link to info page on macupdate.com my $resultString = "