Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Is ActivePerl repositories go free again?

by exilepanda (Pilgrim)
on Apr 30, 2017 at 08:13 UTC ( #1189201=note: print w/replies, xml ) Need Help??


in reply to Re: Is ActivePerl repositories go free again?
in thread Is ActivePerl repositories go free again?

There are reasons... but in short, before Strawberry Perl can load sitecustomize.pl again. I will have to stick with ActivePerl. Thanks for your suggestion though. =)
  • Comment on Re^2: Is ActivePerl repositories go free again?

Replies are listed 'Best First'.
Re^3: Is ActivePerl repositories go free again?
by shmem (Chancellor) on Apr 30, 2017 at 09:16 UTC

    Place your sitecustomize.pl anywhere in perls lib path as sitecustomize.pm and set the environment variable PERL5OPT to -Msitecustomize - that should do the trick with strawberry.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
      Hey! That's something new that I've never considered! Must give it a try. One thing that I don't want to do extra module way is because I have to use that module everywhere ( scripts and other modules ) and I am 200% sure I don't want to deal with this mess. But this trick make the change transparent! Thanks for the advise! Love it! =D

        You can even place your siteconfig.pm in a custom directory (or just link it thereto), e.g. X:\myconfig\perl and set PERL5OPT to -IX:\myconfig\perl -Msiteconfig, so you don't have to mess with installation paths at all.

        On my system (Linux):

        # file /tmp/perl/siteconfig.pm print "loaded " . __FILE__ . " from $INC[0]\n"; shift @INC; # done with files in /tmp/perl 1;
        qwurx [shmem] ~> env PERL5OPT='-I/tmp/perl -Msiteconfig' perl -e 1 loaded /tmp/perl/siteconfig.pm from /tmp/perl

        The shift @INC restores the original @INC perl lib search path array. Comment it out if that config directory contains more of your custom modules which should be found first. This is all in perlrun, which is worth reading thoroughly.

        perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
Re^3: Is ActivePerl repositories go free again?
by marto (Archbishop) on Apr 30, 2017 at 08:46 UTC

    Then either create a config module to store this and switch to Strawberry or pay ActiveState for their services.

    Update: but you already knew that.

Log In?
Username:
Password:

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

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










    Results (95 votes). Check out past polls.

    Notices?