Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Backward compatibility of code problem

by Doctrin (Beadle)
on Feb 04, 2013 at 22:13 UTC ( #1017019=perlquestion: print w/ replies, xml ) Need Help??
Doctrin has asked for the wisdom of the Perl Monks concerning the following question:

Hello everyone. My hosting moved from older version of Perl to newer one. And... Some problems appeared, though all was OK with old version. Is there a way to fix this problem fast, without changing code? Thanks in advance UPD Thanks everyone. I see that there is no really simple and fast way to do that. I know how to fix an error that appears, but it would take much time to do that in my code. But, I see, there is no other way :( Thanks anyway for help

Comment on Backward compatibility of code problem
Re: Backward compatibility of code problem
by choroba (Abbot) on Feb 04, 2013 at 22:50 UTC
    without changing code
    Yes, of course. Change the hosting to something that still runs the old version.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re: Backward compatibility of code problem
by tobyink (Abbot) on Feb 05, 2013 at 00:04 UTC

    That depends on what the problems are. Most of the monks here haven't yet invested the thousands of hours of meditation necessary to become psychic diagnosticians of Perl problems.

    The text of the error message might help.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
Re: Backward compatibility of code problem
by sundialsvc4 (Abbot) on Feb 05, 2013 at 04:32 UTC

    Most likely, you will need to re-install the CPAN modules that are required by your application, after completely destroying (that is to say, renaming!) the existing CPAN library subdirectory that your application requires.

    When you undertake the apparently-simple task of “installing a CPAN package,” depending on the package, considerable magickal version-specific voodoo (ommmmm....) might occur! ... all of which, properly, should be none of your concern.   (You waved the black rod with the rusty star on the end, just like the instructions told you to do, and a crystal bridge now spans the fissure, and that should be the end of it.)   Now that your host has switched Perls on you, these processes must be repeated, as though they had never been done before ... as, effectively, they have not.   You need for all of the CPAN installations to start over from scratch, considering only the new environment and assuming that no packages (other than those provided by the new environment ...) exist.   If you can be sure of that, all should be well.

    P.S.:   If the hosting company in question happens to be 1&1 Internet, and you discover that they have now set the memory ulimit too small to run cpan anymore, remember cpanm.

    (ahem ...)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1017019]
Approved by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2014-10-24 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (132 votes), past polls