Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: sitecustomize.pl equivalent on Strawberry Perl?

by exilepanda (Pilgrim)
on Jan 07, 2017 at 12:37 UTC ( #1179125=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1179125]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2020-02-21 13:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (96 votes). Check out past polls.

    Notices?