Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by exilepanda (Friar)
on Jan 07, 2017 at 12:37 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1179125]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-26 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found