Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Perl Upgrade with Redhat Linux OS Upgrade

by FreeBeerReekingMonk (Deacon)
on Sep 26, 2019 at 20:21 UTC ( [id://11106762]=note: print w/replies, xml ) Need Help??


in reply to Perl Upgrade with Redhat Linux OS Upgrade

Headsup: Focus on *.pm used libraries.

Usually with big Perl programs, they "use" libraries, that sometimes are not backwards compatible, or suddenly cease to exist after the upgrade. Or are not available for your new perl version. so check if you did not forget any library. Perl Libraries are also sometimes NOT written in pure perl, but in C (or C++) for speed (through a method called XS). So on this totally new RHEL7, you need to make sure these are there too. And copying them over is sometimes possible, sometimes not. (hopefully all your libraries are on CPAN and not in-house)

What I would do is an strace perl myperlprogram.pl and see what files are being used. There are better tools, like PrereqScanner but those need to be installed, and your machines probably do not have access to Internet, thus no access to CPAN (but if you do, it is as simple as: cpan Perl::PrereqScanner)

Also check the old version to make the new perl behave like it is an older perl (use VERSION). This is handy when your new perl does not want to run the old perl code because there is a bug, and that bug worked fine in the older perl.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-26 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found