freeside/FS/FS ClientAPI.pm,1.2,1.3

ivan ivan at pouncequick.420.am
Fri Feb 4 17:30:58 PST 2005


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory pouncequick:/tmp/cvs-serv24077

Modified Files:
	ClientAPI.pm 
Log Message:
remove unnecessary circular use of FS::ClientAPI, doesn't work with 5.8.[56] + perl??

Index: ClientAPI.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ClientAPI.pm	9 Sep 2002 12:34:55 -0000	1.2
+++ ClientAPI.pm	5 Feb 2005 01:30:55 -0000	1.3
@@ -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 $@;
   }




More information about the freeside-commits mailing list