The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

#!/usr/bin/perl
#
# $LastChangedRevision: 1327 $
# $LastChangedDate: 2008-10-01 16:16:56 +0100 (Wed, 01 Oct 2008) $
# $LastChangedBy: oliver $
#
use strict;
use warnings FATAL => 'all';
my $config = RPC::Serialized::Config->new( shift @ARGV );
my $class = $config->server_class;
eval "require $class"
or die "Failed to load $class: $@";
my $server = $class->new( $config->data_serializer );
if ( $config->acl_path ) {
my $authz = RPC::Serialized::AuthzHandler::ACL->new( $config->acl_path );
$server->authz_handler($authz);
}
while ( my ( $h, $c ) = each %{ $config->handlers } ) {
$server->handler( $h, $c );
}
$server->process;