Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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


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
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 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 GrandFather (Cardinal) 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2014-12-22 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (114 votes), past polls