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

I have no idea why the good folks at Strawberry began omitting that flag from version 5.14 onwards

I don't know either but my assumption is that it would have been no longer deemed necessary.

exilepanda, could you provide us with examples of the things that sitecustomize.pl needs to set (and which Strawbeery Perl is failing to set) ?
(Maybe there's a simple solution.)

Cheers,
Rob
  • Comment on Re^2: sitecustomize.pl equivalent on Strawberry Perl?

Replies are listed 'Best First'.
Re^3: sitecustomize.pl equivalent on Strawberry Perl?
by exilepanda (Friar) on Jan 07, 2017 at 12:37 UTC
    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.
      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.