views:

110

answers:

3

What are the impacts (If any) by developing code in Perl 5.6.1 but running the code in Perl 5.8.x or 5.10.x?

I'm using these modules:

(For Linux)
HTTP::Request
HTTP::Response
LWP::UserAgent
Unicode::String
XML::DOM
DateTime::Format::DateManip

(For Windows)

Unicode-String
XML-DOM
DateTime-Format-DateManip (Haven't installed this yet on Windows, still looking for package)
+2  A: 

These are fairly standard modules... I wouldn't expect many problems. In general Perl is mature enough that you can assume backwards compatibility. But you can't know it for sure until you try :)

amarillion
These are good points, this is production that clients use and time for testing is limited. Would you say it's better to just to the latest version or from 5.6.x to 5.8.x?
Phill Pafford
There are a few violations, 5.6 and 5.8 have pseudo hashes a different obscure data type, 5.10 introduces a new operator `//`, and `~~` which can introduces parsing ambiguities in 5.10 iirc. There are also a few differencing in sorting algo performance, and utf handling. 5.6 has a different thread model iirc from 5.8 and 5.10
Evan Carroll
+7  A: 

The release notes for each version of Perl contain good summaries of all the important differences from the prior version. See, for example

perl58delta

perl581delta

perl5100delta

mobrule
+4  A: 

Try it and find out. You can install multiple perls at the same time with them interfering with each other. Test your code with the different versions and see what happens. If everything blows up, you still have the original perl around.

See the answers to How should I install more than one version of Perl?

brian d foy