You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Patrick Galbraith <pa...@patg.net> on 2007/04/03 18:03:13 UTC
conditional require of Apache::Constants, answer
Ok,
I figured it out with one last suggestion from a friend:
BEGIN
{
if (exists $ENV{MOD_PERL})
{
require Apache::Constants;
import Apache::Constants qw(:common :http);
}
}
That is the ticket!
Thanks to all who were to answer!
Patrick
--
Patrick Galbraith, Senior Programmer
Grazr - Easy feed grazing and sharing
http://www.grazr.com
Satyam Eva Jayate - Truth Alone Triumphs
Mundaka Upanishad