From 451b144bbe75133399003d82c5868fdc01ec37b1 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 8 Nov 2009 00:44:38 +0100 Subject: [PATCH] Girocco::Notify: Move use RPC::XML to BEGIN{} --- Girocco/Notify.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Girocco/Notify.pm b/Girocco/Notify.pm index f5d6125..2c67670 100644 --- a/Girocco/Notify.pm +++ b/Girocco/Notify.pm @@ -5,8 +5,12 @@ use warnings; BEGIN { use Girocco::Config; + use JSON; use LWP::UserAgent; + + use RPC::XML; + use RPC::XML::Client; } @@ -155,9 +159,6 @@ EOT $msg .= "$subj\n"; # print "$msg\n"; - use RPC::XML; - use RPC::XML::Client; - my $rpc_client = new RPC::XML::Client "http://cia.vc/RPC2"; my $rpc_request = RPC::XML::request->new('hub.deliver', $msg); my $rpc_response = $rpc_client->send_request($rpc_request); -- 2.11.4.GIT