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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |