Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I hope that you're not being told to port to older versions that you don't have access to -- the task would be a bit too speculative if you can't test the scripts against particular older perl releases that you can still run yourself.

Assuming that you only need to port to versions that you have on hand, the obvious starting point is to make a list of the available relevant versions, remove the initial "shebang" line from your scripts, and run them through the older versions like this:

/path/to/perl5.006/bin/perl -cw script1 > script1.5.006.errs 2>&1 /path/to/perl5.005/bin/perl -cw script1 > script1.5.005.errs 2>&1 etc.
Store each version's error report in a separate file, then take the union of the messages in all files to assess what damage needs to be done to each script. Or it might be better to work on the intersections -- where multiple versions report the same problem -- fix those first before altering lines that only cause a problem in one version, or that cause different error reports in different versions.

Don't do any more research on perl version lore than you have to -- just check the line numbers of the error messages, and grep through the perldelta docs for relevant hints based on the errors.

Bear in mind that some errors may be due to extra modules that are present in your up-to-date perl release but are not installed for the older versions. Adding those modules to the older versions might be tricky (esp. if you have to find older versions of the modules :P).


In reply to Re: Differences Between Versions of Perl by graff
in thread Differences Between Versions of Perl by BigGuy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-19 23:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found