in reply to Perl 5.8 to 5.16 and HASH error

I'd start looking at the module version upgrade before the Perl version upgrade to explain the problem you seem to be having.

- tye        

  • Comment on Re: Perl 5.8 to 5.16 and HASH error (mod)

Replies are listed 'Best First'.
Re^2: Perl 5.8 to 5.16 and HASH error (mod)
by robsgoingmad (Initiate) on Sep 12, 2012 at 08:04 UTC

    Hi

    Not sure what you mean regarding module version upgrade.

    1. Old server running Linux 2.6.24 GNU/Linux. New server running Linux 2.6.18 GBU/Linux 2. Old perl version 5.8.8, new perl version 5.16.0 I have used cpanm to upgrade all "use libraries" to latest versions. 3. The code has been copied from the old server to the new server.

    I am not expecting to change any of the code. Surely the same code should work?

    If you advise that there are differences in how code functions between the 2 different perl versions then I have a big problem. This is the first phase of transferring code from the old server. There are bigger applications to move once this is working.

    Thanks for your help

    Regards

    Rob

      In your original node, you only actual show a couple of modules being used:

      use strict; use XML::Simpl­e;

      I wasn't thinking the problem was due to strict.pm changes.

      I believe the data structure that is no longer in the same shape that it used to be in is one being generated by that other module.

      You might want to compare the version numbers of that module and even read the Changes file for that module.

      - tye        

        Hi

        I am going to go away and check the data

        Back in touch when I have checked

        Have a good weekend

        Regards

        Rob

      Not sure what you mean regarding module version upgrade.

      He means, before upgrading perl (from 5.8.8), upgrade the modules in the old perl ( INSTALL_BASE )

      That ought to break some things and perl version won't be the reason

      After you've fixed it to work with latest modules under 5.8.8, then upgrade to 5.16 to see what else breaks

        Hi

        I am going to go away and check the data. I have had a few comments which suggest a change in the data structure may be involved. In the dark recesses ofmy mind I think there may be some truth in that.

        What you suggest makes sense but I dont want to mess around with a live system, so if the "data route" is no good I will setup another server and try your theory.

        Have a good weekend

        Regards

        Rob