Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

replacing ActivePerl with Strawberry Perl

by fionbarr (Friar)
on Aug 01, 2014 at 13:10 UTC ( [id://1095905]=perlquestion: print w/replies, xml ) Need Help??

fionbarr has asked for the wisdom of the Perl Monks concerning the following question:

good morning... I have a working application with ActivePerl 5.18 (Windows7)...I have received advice to replace ActivePerl with Strawberry Perl but I am loath to take the chance of screwing up the work I have done. What are the drawbacks/perils of doing this.
  • Comment on replacing ActivePerl with Strawberry Perl

Replies are listed 'Best First'.
Re: replacing ActivePerl with Strawberry Perl
by Athanasius (Archbishop) on Aug 01, 2014 at 13:30 UTC

    Hello fionbarr,

    As I pointed out previously, you don’t have to take any chances. Just download the Strawberry Perl PortableZIP edition appropriate to your OS (i.e., 32- or 64-bit) and unzip it to a suitable directory. Then, to run this new version of Perl, double click on the file portableshell.bat. Enter perl -v from the command line to verify that the Perl you are using is the one from Strawberry Perl. Install any modules you need locally (i.e. for this version only) by running cpanm from this command line.

    You can then test your existing scripts on the new Strawberry Perl version. If they don’t work, and you can’t get them to work (for whatever reason), you have lost nothing but a bit of time — your existing ActivePerl is still installed and will still work the same as it always did.

    Hope that helps,

    Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

      thanks for the advice
Re: replacing ActivePerl with Strawberry Perl
by ikegami (Patriarch) on Aug 01, 2014 at 13:21 UTC

    Both can be installed on the same system. (I have a dozen versions of ActiverPerl on this system, though no Strawberry Perl.)

    You might want to adjust your PATH and your file associations to affect which perl gets executed when you enter perl at the prompt or double-click on the .pl file.

Re: replacing ActivePerl with Strawberry Perl
by marto (Cardinal) on Aug 01, 2014 at 13:14 UTC

    You won't be making any code changes, you're replacing one Perl with another. If you're concerned take a backup of your existing environment before removing and replacing ActiveState perl. You can run AS and Strawberry Perl one the same system quite happily, provided you don't get confused very easily.

Re: replacing ActivePerl with Strawberry Perl
by sundialsvc4 (Abbot) on Aug 02, 2014 at 16:08 UTC

    I think that the biggest concern will be the library-modules (PERL5LIB equivalent).   I know that Windows implementations use registry-keys for this ... I presume that both Strawberry and AS do this and with their own distinct keys.   I expect that perl -V, with a capital V, will print out the library search-path as before.   What you really want to make sure of is that one Perl implementation doesn’t reference the Perl packages (including underlying XS bits ...) that were built and used by the other.   The module installation and configuration process often does a lot of low-level compiling, and I expect that it will be quite specific to this, vs. that, Perl implementation on the same box.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1095905]
Approved by muba
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-24 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found