donaldm314 has asked for the wisdom of the Perl Monks concerning the following question:
sub is_ID_valid {
my $ID = shift;
# Query the database, see if the ID is valid.
return $valid;
}
In client.pl:
$valid = $connection->rpc('is_ID_valid', $ID);
This works quite well. The RPC module dispatches the 'is_ID_valid' from the client to the server to which we are connected.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RPC.pm and using eval to make a dummy client stub
by bikeNomad (Priest) on Jun 01, 2001 at 20:57 UTC | |
by jeffa (Bishop) on Jun 01, 2001 at 23:58 UTC | |
|
(jeffa) Re: RPC.pm and using eval to make a dummy client stub
by jeffa (Bishop) on Jun 01, 2001 at 23:54 UTC |