#!/usr/bin/perl use strict; use warnings; use XML::Atom::Client; use XML::Atom::Feed::JavaScript; my $client = XML::Atom::Client->new(); my $feed = $client->getFeed('http://xpko.blogspot.com/atom.xml'); print $feed->asJavascript();