Hi,
I've copied Strawberry Perl (which implies Win32) onto a removable flash drive. I have a batch command that sets the PATH and other $ENV settings correctly making perl, cpan, and nmake accessible. I have also written a Perl script that modifies cpan's Config.pm so that cpan can download, build and install modules (almost) correctly into the Perl install on the flash drive. (Why? I have broadband at work, and not at home, it was getting irritating to bring home a bunch of module tarballs only to find that they required missing dependencies). It almost works except that Perl has some compile time settings (mostly paths) that need to be changed. They seem to be in X:\strawberry\perl\lib\Config.pm, but also appear in X:\strawberry\perl\lib\Config_heavy.pl and X:\strawberry\perl\lib\CORE\config.h and probably a bunch of others too. (Note: with a removable drive the X: changes from system to system, hence the need to change these configurations)

Can I just edit Config.pm, or will I also need to do something with perl.exe? Is there a Perl module that already does these things? (I couldn't find one)

So far the Perl-onna-stick thing is working really well for writing and running scripts (i.e. doing things with Perl), but is having small issues with installing modules etc (i.e. doing things to Perl) because it thinks everything should be stored off the C:\strawberry\perl path prefix.

The trick after this will be trying to incorporate GTK2-perl.

Update: I've given using a script to edit Perl's Config.pm and Config_heavy.pl a whirl... it works!

When I'm done I'll try and write a coherent article on "RFC: Changing Perl Config settings" and and another on "Strawberry-Perl-onna-Stick".


In reply to Changing Perl compile-time configuration settings by Bloodrage

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.