in reply to Re: Upgrading Perl 5.8 program to 5.22
in thread [SOLVED]:Upgrading Perl 5.8 program to 5.22

The error I get when changing to 5.10 is "Undefined subroutine &Exporter::import called at C:/strawberry/perl/lib/CGI/Carp.pm line 371." That is the same message I get for any version higher. I'm kinda sure its because of the way I use Exporter in a module to keep all the objects and variables in scope through the program.

Correct me if I'm wrong. Looking in the perl5100delta at perldoc. The "Incompatible Changes" >> "Recursive inheritance detected earlier" could be the thing that broke the program.

I do not think I can do the magic I could with Exporter any more.

  • Comment on Re^2: Upgrading Perl 5.8 program to 5.22

Replies are listed 'Best First'.
Re^3: Upgrading Perl 5.8 program to 5.22
by davido (Cardinal) on May 23, 2016 at 17:00 UTC

    Did you upgrade modules such as CGI::Carp after upgrading the Perl version? It seems more likely that an old version of CGI::Carp was relying on some behavior that has changed. Upgrading CGI::Carp to a newer version could fix the issue.


    Dave

      Updating all the default modules was the first thing I did after installing Perl

      I spoke to soon. Just rechecked and not all the modules where updated. It updated CGI::Carp but Exporter is still v5.63 not v5.72.

      Thanks for making me question myself.

        I hope that helped resolve the issue. It would be great if it turned out to be something simple that doesn't require digging into and refactoring the code significantly.


        Dave