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

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.

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

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

    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

      It's running Perl v5.22.1 with some very minor changes. Seems the problem was the fact the module I used to keep my variables in scope was named exporter and was causing a conflict with Exporter. So a rename and a few edits later and it all works good.

      The lesson was... Don't use Exporter in a file you have named "exporter" to keep your variables in scope. But you can use Exporter in a file called "foo" and it will work fine.

        Well I'm glad you arrived at a solution. I know it's been one of the goals of P5P to ensure that to the fullest extent practical (and sometimes even if it's impractical to do so), to maintain backward compatibility.


        Dave