How to upgrade Perl

First you should upgrade Perl only if extremely necessary. And if you need to upgrade Perl for only 1 or 2 Modules which are not compatible then do this

(assuming you are using cpan)

cpanm Module::Name –prompt

(When it says incompatible version type Yes and go ahead. Most of the time it would work).

But if you still want to upgrade then here are the steps

1) Make sure you have a backup copy of before doing this. Just in case

2) Once you get to the cpan> prompt, type “cpan upgrade” to make sure you’re on the latest version.

3) Then, to upgrade Perl, just type “upgrade”. This will take a while (5-10 minutes) but assuming it succeeds, you’ll be on  latest version of Perl  with all of the new features.

P.S: It would not work on a MAC as it does not make any actual use of perl.






Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s