summaryrefslogtreecommitdiff
path: root/FS/FS/ClientAPI.pm
diff options
context:
space:
mode:
authorivan <ivan>2005-02-05 01:30:55 +0000
committerivan <ivan>2005-02-05 01:30:55 +0000
commita06550f5269b610009cf89b3698eed2bd13be261 (patch)
tree75e66f11ea4e5d3ed41bb3083fd6d26f05ea2907 /FS/FS/ClientAPI.pm
parent1042bdaec22e1b95484ee7cfbd720f33c9b6709a (diff)
remove unnecessary circular use of FS::ClientAPI, doesn't work with 5.8.[56] + perl??
Diffstat (limited to 'FS/FS/ClientAPI.pm')
-rw-r--r--FS/FS/ClientAPI.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/FS/FS/ClientAPI.pm b/FS/FS/ClientAPI.pm
index 7cbbdbf..1109ede 100644
--- a/FS/FS/ClientAPI.pm
+++ b/FS/FS/ClientAPI.pm
@@ -1,19 +1,23 @@
package FS::ClientAPI;
use strict;
-use vars qw(%handler $domain);
+use vars qw(%handler $domain $DEBUG);
+
+$DEBUG = 1;
%handler = ();
#find modules
foreach my $INC ( @INC ) {
- foreach my $file ( glob("$INC/FS/ClientAPI/*.pm") ) {
+ my $glob = "$INC/FS/ClientAPI/*.pm";
+ warn "FS::ClientAPI: searching $glob" if $DEBUG;
+ foreach my $file ( glob($glob) ) {
$file =~ /\/(\w+)\.pm$/ or do {
warn "unrecognized ClientAPI file: $file";
next
};
my $mod = $1;
- #warn "using FS::ClientAPI::$mod";
+ warn "using FS::ClientAPI::$mod" if $DEBUG;
eval "use FS::ClientAPI::$mod;";
die "error using FS::ClientAPI::$mod: $@" if $@;
}