in reply to Re: Perl Upgrade with Redhat Linux OS Upgrade
in thread Perl Upgrade with Redhat Linux OS Upgrade

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

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

Replies are listed 'Best First'.
Re^3: Perl Upgrade with Redhat Linux OS Upgrade
by marto (Cardinal) on Sep 26, 2019 at 10:26 UTC

    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.

        On your 5.8 system use perl -MCPAN -eautobundle to create a bundle for you, which you can then transfer to the new system and install the same way you would any other bundle: perl -MCPAN -e "install Bundle::Snapshot_YYYY_MM_DD_00".

Re^3: Perl Upgrade with Redhat Linux OS Upgrade
by FreeBeerReekingMonk (Deacon) on Sep 26, 2019 at 20:28 UTC
    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).