[Linux-disciples] Pinging Technorati

Stephen R Laniel steve at laniels.org
Thu Apr 1 19:01:05 EST 2004


I'm using the Frontier::Client Perl library (in APT) to
write a little program that will ping Technorati whenever I
update my blog. In its entirety, here's my script:

/*
#!/usr/bin/perl -w
use strict;
use Frontier::Client;
my $server = Frontier::Client->new( 'url' => 'http://rpc.technorati.com/rpc/ping' );
my @args = ("Stephen Laniel's Unspecified Bunker", 'http://laniels.org/');
my $result = $server->call('weblogUpdates.ping', @args);
*/

I *think* that did what I wanted it to, but I can't tell;
the page describing the library
(http://search.cpan.org/~kmacleod/Frontier-RPC-0.06/lib/Frontier/Client.pm)
(sorry, shorl.com appears to be down) doesn't list any error
messages that the library returns, nor does it list any
methods on the object that allow you to print the object's
contents (i.e., no 'tostring' method). Just doing a straight
'print $server' or 'print $result' doesn't seem to do
anything.

So two questions:

1) any idea how to get this library to be useful?
and
2) is this the library you'd use if you were writing an
XML-RPC client?

-- 
"Quiller-Couch taught him about writing. 'I would turn in
 something filled with high-flown phrases of which I was
 inordinately proud,' [Alistair] Cook said. 'Q would cut
 them out. "Cook," he once said to me, "you must learn
 to murder your darlings."'"
-New York Times obituary for Alistair Cook, 30 March 2004



More information about the Linux-disciples mailing list