"John D. Leonard II" wrote: > > 2) Intermittently, the script works, or fails with a "Undefined > subroutine" error associated with "WeekOfYear" > > 3) The subroutine "WeekOfYear" is contained in a handrolled PM file. On > this server I don't have admin access, so I'm PUSHing the location of > the PM file onto the INC using the following code in my global.asa: > > ========== > > BEGIN{ > push @INC,"/export/admin/jleonard/globals/ISG/CourseTools/blib/lib"; > } > > use HTML::TreeBuilder; > use ISG::CourseTools; > > ========== > > My Script_OnStart, etc. are empty. >
In what package is WeekOfYear() defined and how it is supposed to be exported into the global.asa package? Is it using Exporter? Make sure that the package that defines WeekOfYear() and exports it is used in global.asa so the import of WeekOfYear() can occur. Also make sure that WeekOfYear is being explicitly exported. Instead of BEGIN {}, try using "use lib qw(/path/)" for the same effect. This is not related to your problem, just cleaner. > 4) I'm running mostly defaults in the .htaccess file: > > PerlSetVar Global /export/admin/jleonard/globals/200202 > PerlSetVar IncludesDir /export/admin/jleonard/globals/common > PerlSetVar StateDir /tmp/200202 > FYI, Global acts an an IncludesDir... IncludesDir is nice when you want to share includes accross applications. If you get to the end of the line, and you need to make this work try something like this in global.asa: use Package; *WeekOfYear = *Package::WeekOfYear; This is by no means ideal, but if this works, and nothing else does, this may give us some clues. If you are using StatINC or StatINCMatch settings, try turning them off & see if that makes a difference. -- Josh _________________________________________________________________ Joshua Chamas Chamas Enterprises Inc. NodeWorks Founder Huntington Beach, CA USA http://www.nodeworks.com 1-714-625-4051 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]