Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using ActivePerl and Strawberry simultanously

I recently upgraded my version of client-side 64-bit ActivePerl from version 5.10.1.1007 to 5.22.2.2203, and am having tons of problems with it.

I'd really rather jump to Strawberry, but I'll have to test it first on each of the critical Perl apps I run on a daily basis.

Can I install the portable version of Strawberry and test it out while continuing to use the ActivePerl version for production work?

(Other stackoverflow questions similar to mine received answers about server-side Perl only.)

like image 433
Dean Hannotte Avatar asked Aug 04 '26 00:08

Dean Hannotte


1 Answers

You can, you just have to watch which perl you're using. Only one can be "first" in your PATH. For this, I'd suggest leaving the old perl as the default, primary one. This will have the least effect on existing (production) code.

You can, however, have a secondary perl in your PATH with a different name. For example, perl5.22.2.exe could be in your PATH, and you can use it when running your tests.

If you have a batch file or similar as a wrapper around perl scripts, you can have the batch file for each app run the correct perl for that application, and you merely need a) a way to override the perl it uses, and b) to have it default to the tested level of perl you want it to use. That way you can test with 5.22.2 for a while, but the default remains 5.10.1. And then you can switch the default over to 5.22.2 when you're ready for that application to switch.

Whether it's client-side or server-side doesn't make any real difference to this.

(And platform doesn't make much difference, either - while the actual implementation on a unix/linux system might be a bit different, the general idea doesn't have to be. You can have both installed at the same time, and manage which perl to use on an application by application basis if you have to.)

like image 143
Tanktalus Avatar answered Aug 05 '26 20:08

Tanktalus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!