Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Perl upgrade

by prashantktyagi (Scribe)
on Jun 13, 2012 at 09:27 UTC ( #975945=perlquestion: print w/replies, xml ) Need Help??
prashantktyagi has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, Need an advise. Please help.
Currently my application (platform independent) use bundled Perl (5.6). I need to upgrade it to latest stable. I know it is a huge gap.It may happen some function can be deprecated to this version (5.14 I am thinking).
Can you please advise the best way I can do this.

Replies are listed 'Best First'.
Re: Perl upgrade
by moritz (Cardinal) on Jun 13, 2012 at 09:32 UTC

      after upgarde Executing command `pwd` on shell gives this error..

      Legacy library will be removed from the Perl core distribution in the + next r release. Please install it from the CPAN distribution Perl4::CoreLib +s. It eing used at , line .
      I am not getting this...`pwd` is a part of unix shell..Am I missing something?

        I am not getting this...`pwd` is a part of unix shell..Am I missing something?

        Yes, the full path to this pwd program

        Do not add @INC to your $PATH

Re: Perl upgrade
by Ralesk (Pilgrim) on Jun 13, 2012 at 11:47 UTC

    You should leave the systemís 5.6 alone as probably too many other things depend on it. Use perlbrew to install a separate Perl with whatever modules you wish (using cpanm installed by perlbrew), and then work on your software to make it compatible with the more modern Perl release of your choice.

      I definitely “second the motion” that you should not disturb the operating system’s installed version of Perl since many system management tools could depend on it.

      If you are indeed using a system with a Perl that old (e.g. CentOS 5) you probably should seriously consider upgrading it.

        Hi Monks..

        Please forgive me for my unawareness as I am novice.Actually in my application bundled Perl , Path( lib, site , bin etc) are in different directory... What I did right now I installed Perl on my machine and copied it into my application correct directory ( as lib in <app>/perl5/lib )...

        But I am having problem in installing module...can't run cpan from this extracted perl

        Please any advise..
Re: Perl upgrade
by Ralesk (Pilgrim) on Jun 14, 2012 at 06:34 UTC

    You mention Windows and you also mention bundled Perl ó so what exactly is this? An application made with ActivePerl for example?

    I think we definitely need more detail to be able to help you properly.


      It is like this my application is perl based so we bundled perl interpreter inside to run application.

      it is like
      Bin path : <app-home>/Windows/perl5/bin/per5
      Lib path : <app-home>/Windows/perl5/lib/per5/lib
      Site path: <app-home>/Windows/perl5/lib/per5/site
      Problem is what i did I copied all files from my machine perl to these locations..
      But I need to install several modules into "site Path" ..what I did I removed all path related to machine perl and point it to application perl.. when I do cpan from <app-home>Windows/perl5/ failed saying
      Having "<app-home>Windows/perl5/lib"<br/> looking c:/Perl/lib<br/>
      What is the best way to install modules into these custom locations?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://975945]
Approved by moritz
[mz2255]: I'm trying to post a question to "seekers of perl wisdom" but always getting a permission denied when I want to submit. There are no links in my post...
[ambrus]: again? someone complained about this just a few days ago (although eventually they could post)
[choroba]: Can you post the question in mz2255's scratchpad?
[ambrus]: Corion, if you're here, can you check the spam filter logs to see what's triggering this time?
[ambrus]: Petroza had trouble posting yesterday, but has posted Issues Fetching URL with a variable token since.
[mz2255]: Yes, just edited the scratchpad. Not sure if I'm doing something wrong, it's my first time.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2017-10-19 15:25 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (255 votes). Check out past polls.