home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / perl / 7546 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.6 KB  |  46 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!usc!news.cerf.net!netlabs!lwall
  3. From: lwall@netlabs.com (Larry Wall)
  4. Subject: Re: Perl IV & V incompatibilities?
  5. Message-ID: <1992Dec19.023709.2700@netlabs.com>
  6. Sender: news@netlabs.com
  7. Nntp-Posting-Host: scalpel.netlabs.com
  8. Organization: NetLabs, Inc.
  9. References: <1992Dec17.175420.19745@merlin.dev.cdx.mot.com>
  10. Date: Sat, 19 Dec 1992 02:37:09 GMT
  11. Lines: 33
  12.  
  13. In article <1992Dec17.175420.19745@merlin.dev.cdx.mot.com> lezz@merlin.dev.cdx.mot.com (Lezz Giles) writes:
  14. : I'm getting a little bit scared about Perl V - I have lots of Perl IV code
  15. : and I'm scared that it'll all have to be rewritten when I move to Perl V.
  16. : So my question is very simple - what _isn't_ compatible?  What will need
  17. : to be rewritten?
  18.  
  19. Here's my current list of incompatibilities:
  20.  
  21.     The second and third arguments of splice are now evaluated in scalar
  22.     context (like the book says) rather than list context.  
  23.  
  24.     Saying shift @foo + 20 is now a semantic error.
  25.  
  26.     The elements of argument lists for formats are now evaluated in list
  27.     context.
  28.     
  29.     You can't do a goto into a block that is optimized away.
  30.     
  31.     Some error messages will be different.
  32.  
  33.     s'$lhs'$rhs' now does no interpolation on either side.  It used to
  34.     interplolate $lhs but not $rhs.
  35.  
  36. Not a real big list, as you can see.  I think that the list context for
  37. format arguments is probably the likeliest one to bite you, and it's
  38. real easy to work around.  Unless, of course, you're in the habit of
  39. using "goto" to enter "while (0)" blocks...
  40.  
  41. I may well deprecate select(FILEHANDLE) in favor of some other mechanism,
  42. but I won't break it (yet).
  43.  
  44. Larry
  45.