Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Script validity between different perl versions

by targetsmart (Curate)
on Mar 30, 2010 at 11:59 UTC ( #831829=perlquestion: print w/replies, xml ) Need Help??

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).

-- '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 (Sage) 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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://831829]
Approved by Hue-Bond
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2020-10-24 03:40 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (242 votes). Check out past polls.