in reply to Perl Upgrade with Redhat Linux OS Upgrade

"What are all the major changes and key points that must be keep in mind before starting an upgrade."

It sounds like a good time to start your research. The latest 5.24 release is 5.24.4, that that isn't the most recent perl version. 5.24.4 history/changes is a good place to start. A sane strategy would be to fully test your application(s) thoroughly on the target OS/Perl version.

  • Comment on Re: Perl Upgrade with Redhat Linux OS Upgrade

Replies are listed 'Best First'.
Re^2: Perl Upgrade with Redhat Linux OS Upgrade
by shijith (Novice) on Sep 26, 2019 at 10:18 UTC

    thanks for the update.. is there any other option available instead of checking each file.

      You could cat them all together if you think that would help? Or on the target OS, with the target Perl version, run all your test suites, examine the outcome.

        To match all modules install in old and new perl version. can i take module snapshot from perl 5.8 and restore it on 5.20. then do a module update. is this will work ..? does this will work.

      You can use find:

      find /path/to/the/scripts -name '*.pl' -exec perl -wc {} \;

      perl -wc is to check the syntax of the scripts. They should give "OK" back, but that is not a guarantee to run correctly, though; only that the libraries are found and the syntax is ok according to Perl.

      This only works if the perl scripts have the .pl extension (which is not mandatory).