On Thursday, August 15, 2002, at 09:53 AM, Alex Rice wrote:
> So, is there some way I get a Perl script to get the env variable > before the modules are loaded? This does not work, but setting it with > setenv before running the script works. > > #!/usr/bin/perl > $ENV{'DYLD_FORCE_FLAT_NAMESPACE'} = 1; > use mapscript; > use DBI; > print DBI->data_sources('Pg'); Try: #!/usr/bin/perl BEGIN { $ENV{'DYLD_FORCE_FLAT_NAMESPACE'} = 1; } # set at compile time use mapscript; use DBI; print DBI->data_sources('Pg'); ------------------------------------------------------------------------ -- Edward Moy Apple Computer, Inc. [EMAIL PROTECTED] (This message is from me as a reader of this list, and not a statement from Apple.)