From: John M. <mo...@mu...> - 2001-03-08 12:52:03
|
I'd love it if we could get IDS to run under mod_perl. I'll see what I can do about those annoying global variables tonight. John On Wednesday, March 7, 2001, at 06:52 PM, Caleb Epstein wrote: > On Wed, Mar 07, 2001 at 05:11:59PM -0500, Caleb Epstein wrote: > >> >> I'm playing with runnign ids under mod_perl instead of as an >> external CGI. The following changes to index.cgi and >> admin/index.cgi seem to make it work properly (the >> admin/idnex.cgi was causing errors, but I made the same change >> to the top level index.cgi just in case): >> >> Change the line whcih says: >> >> use idsShared; >> >> to read >> >> use idsShared qw(/^.*/); >> >> This causes all of the EXPORT_OK symbols to be imported from >> idsShared, otherwise they end up in a different namespace and >> when they are used in the CGI scripts, we die(). > > After further examination, this doesn't really work. I still > get errors like this: > > Global symbol "$albumtodisplay" requires explicit package name at > /var/www/photo/admin/index.cgi line 601. > Global symbol "$description" requires explicit package name at > /var/www/photo/admin/index.cgi line 604. > Global symbol "$adminContent" requires explicit package name at > /var/www/photo/admin/index.cgi line 618. > Global symbol "$idscgi" requires explicit package name at > /var/www/photo/admin/index.cgi line 625. > > Mod_perl is a real bear w/non-OO code. > > -- > cae at bklyn dot org | Caleb Epstein | bklyn . org | Brooklyn Dust > Bunny Mfg. |