Path: usenet.cis.ufl.edu!usenet.eel.ufl.edu!psgrain!nntp.teleport.com!usenet From: wjm@best.com (William J. Middleton) Newsgroups: comp.lang.perl.announce,comp.lang.perl.misc Subject: ANNOUNCE: New perltrap examples (perl5 transition aid) Followup-To: comp.lang.perl.misc Date: 19 Mar 1996 17:00:22 GMT Organization: Best Internet Communications Lines: 397 Approved: merlyn@stonehenge.com (comp.lang.perl.announce) Message-ID: <4imp76$mve@nadine.teleport.com> NNTP-Posting-Host: julie.teleport.com X-Disclaimer: The "Approved" header verifies header information for article transmission and does not imply approval of content. Xref: usenet.cis.ufl.edu comp.lang.perl.announce:301 comp.lang.perl.misc:24411 Below find more than 30 examples of documented and undocumented differences (traps) in output from perl4 and perl5. This is provided to you as an aid to making the transition to perl5, which, in spite of these, is probably the best thing to happen to programming languages since the demise of punchcards. The majority of the examples below are simply derived from the items in the perltrap man page. There are also a number of examples of undocumented traps. Some of these may be formally considered bugs, but as of today's date, I've received no confirmation to this effect. If at any time in the future, any of these _are_ declared bugs, I'll update this list ASAP. Also, as soon as it's convenient and appropriate, most or all of these will be patched into the perltrap man page, as part of the official documentation. This simple compendium is provided at this time based on the my perception of an immediate need. Many thanks to all those who took the time and trouble to make submissions to this effort, including that Great Gaggle of Gurus, the perl5-porters. I've tried to credit as best as possible. It should not be expected, however, that such credits will be part of perltrap officially. Further, this effort is still very much open to submissions. If you have knowledge of anything which may be appropriate, please don't hesitate to drop me a line with the subject: Perl4 to Perl5 differences As mentioned in the original announcement, anything you care to write up is OK. Please be sure to mention the architecture you're running on, and what versions of perl4 and perl5 you're using, and preferably a small code snippet, like those below, which demonstrates the problem. The document is uuencoded and attached below, and will also be available on CPAN, updated from time to time if appropriate, at $CPAN/authors/id/BMIDD/425traps-$version Enjoy, Bill begin 444 425traps M(R D260Z(#0R-71R87!S+'8@,2XT(#$Y.38O,#,O,3D@,#&%M<&QE(#$@+2!&2!I;B!D;W5B;&4M<75O=&ES:"!S=')I;F=S+@H*(" @('!R:6YT M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