in reply to Re^2: sitecustomize.pl equivalent on Strawberry Perl?
in thread sitecustomize.pl equivalent on Starwberry Perl?
Though I got -f don't do $sitelib/sitecustomize.pl at startup from perl -h. But no different with/without it.#1. export a global sharable variable require Exporter; our @ISA = qw/Exporter/; our @EXPORT = qw/%GV/; our %GV = (....); #2. add more Lib path push @INC, "D:/Lib/$ENV{SERVER_NAME}" if ($ENV{REMOTE_ADDR}) ; #3. define some dynamic path $ENV{MyData} = "D:/UsrData/Guest/"; $ENV{MyData} = "D:/UsrData/$ENV{USER}" if (length $ENV{USER});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: sitecustomize.pl equivalent on Strawberry Perl?
by Anonymous Monk on Jan 07, 2017 at 17:29 UTC | |
by exilepanda (Friar) on Jan 08, 2017 at 12:21 UTC | |
by Anonymous Monk on Jan 08, 2017 at 13:22 UTC |