http://qs321.pair.com?node_id=831829

targetsmart has asked for the wisdom of the Perl Monks concerning the following question:

I have a perl script written in perl 5.6 , is it possible/valid to run the same script in perl 5.8 or perl 5.10 without any code modification.

If yes does the same applicable to activeperl versions(5.6, 5.8 and 5.10)?

(I can install the 5.8 and 5.10 and test myself, but I may miss some real wisdom, so I raised the doubt before testing manually).


Vivek
-- 'I' am not the body, 'I' am the 'soul/consciousness', which has no beginning or no end, no attachment or no aversion, nothing to attain or lose.
  • Comment on Script validity between different perl versions

Replies are listed 'Best First'.
Re: Script validity between different perl versions
by moritz (Cardinal) on Mar 30, 2010 at 12:25 UTC
    Perl evolves, and sometimes this manifests itself in incompatible changes. Those are documented in the various perldelta documents.

    The Perl 5 porters try to keep those changes minimal, and often they only affect relatively seldom used constructs.

    Perl 6 - links to (nearly) everything that is Perl 6.
Re: Script validity between different perl versions
by cdarke (Prior) on Mar 30, 2010 at 12:22 UTC
    Yes, but you should still test your scripts using all the disciplines that you would with any other software change. In particular you should be careful of any external module versions that you may have downloaded and installed yourself.
Re: Script validity between different perl versions
by GrandFather (Saint) on Mar 30, 2010 at 20:23 UTC

    Create a Perl 5.8 or 5.10 sandbox and run the unit tests for your script in the sandbox. That will quickly alert you to any issues that are of concern to you.


    True laziness is hard work