From: Caleb E. <ca...@bk...> - 2001-03-07 23:51:18
|
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. |