in reply to Re: RPC::XML error
in thread RPC::XML error

Why would a deamon (server) be a replacement for a client?

Is the last line garbage (never executed), or is that code the same as

#!/usr/bin/perl use strict; use warnings; sub sum { my @args = (9, 9); print "The numbers to be added are: @args\n"; return $args[0] + $args[1], "\n"; } print "The sum is: ", sum(), "\n";

Replies are listed 'Best First'.
Re^3: RPC::XML error
by Aishu (Initiate) on Mar 25, 2010 at 07:16 UTC
    ikegami, The last line do gets executed since you are calling the sub routine only there.

      I thought you wanted to use RPC? If that's the only place where the sub is called, then you're not using RPC.

      I thought you wanted to use RPC? If that's the only place where the sub is called, then you're not using RPC.

        ya i wanted to use RPC too. Tell me to how to proceed with, to get the output for the same addition program using RPC... Is there any other web server available for RPC in Perl?
        Please reply to my query on using RPC::XML.... :(