Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Upgrading Perl 5.8 program to 5.22

by davido (Cardinal)
on May 23, 2016 at 17:00 UTC ( [id://1163885]=note: print w/replies, xml ) Need Help??


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

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

Replies are listed 'Best First'.
Re^4: Upgrading Perl 5.8 program to 5.22
by $h4X4_|=73}{ (Monk) on May 23, 2016 at 17:17 UTC

    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

        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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1163885]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found