- assigned_to: nobody --> samh
- summary: -g option and "require" --> -g option and "require"
When I use the same group (-gmygroup) for 2 separate
CGI scripts
which "require" the same common Perl file, the 2nd
script fails
(can't find subroutine "foo") where "foo" is "require"d
in by both CGIs
of the group. This is due to the fact that each CGI
script is loaded
into it's own "package", but the "require" is only done
in the 1st one. The work-around is to use "do" instead
of "require", when running
with SpeedyCGI.
The request of this "bug" is to have SpeedyCGI treat
"require"s as
"do"s the 1st time a *subsequent* CGI in a given group
is loaded so
that all functions and variables of the "require"d
source are "sourced"
into the new package.
Thanks in advance!
Jim Turner
jim.turner@lmco.com