in reply to Re^2: sitecustomize.pl equivalent on Strawberry Perl?
in thread sitecustomize.pl equivalent on Starwberry Perl?

I am on 5.24. I will need sitecustomize for something like this :
#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});
Though I got   -f    don't do $sitelib/sitecustomize.pl at startup from perl -h. But no different with/without it.

Replies are listed 'Best First'.
Re^4: sitecustomize.pl equivalent on Strawberry Perl?
by Anonymous Monk on Jan 07, 2017 at 17:29 UTC
    Why would those need to be set from sitecustomize was oppossed to mystuff.pm?
      Because this is a valid perl feature that I should able to use, and I am using it with perlrun's suggested purpose.
        :) sure, its valid. But its also very specific. Like app specific ... Portable