4 use vars qw(%handler $domain $DEBUG);
11 foreach my $INC ( @INC ) {
12 my $glob = "$INC/FS/ClientAPI/*.pm";
13 warn "FS::ClientAPI: searching $glob" if $DEBUG;
14 foreach my $file ( glob($glob) ) {
15 $file =~ /\/(\w+)\.pm$/ or do {
16 warn "unrecognized ClientAPI file: $file";
20 warn "using FS::ClientAPI::$mod" if $DEBUG;
21 eval "use FS::ClientAPI::$mod;";
22 die "error using FS::ClientAPI::$mod: $@" if $@;
29 my ( $self, $name ) = ( shift, shift );
31 my $sub = "FS::ClientAPI::$name";