home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / perl / 6926 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.7 KB  |  40 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!panther!mothost!merlin.dev.cdx.mot.com!fendahl.dev.cdx.mot.com!mcook
  3. From: mcook@fendahl.dev.cdx.mot.com (Michael Cook)
  4. Subject: Re: scripts should indicate the Perl version (a proposal)
  5. Message-ID: <mcook.721404062@fendahl.dev.cdx.mot.com>
  6. Sender: news@merlin.dev.cdx.mot.com (USENET News System)
  7. Nntp-Posting-Host: fendahl.dev.cdx.mot.com
  8. Organization: Motorola Codex, Canton, Massachusetts
  9. References: <mcook.721326723@fendahl.dev.cdx.mot.com> <CKD.92Nov9194435@loiosh.eff.org>
  10. Date: Tue, 10 Nov 1992 14:01:02 GMT
  11. Lines: 27
  12.  
  13. ckd@eff.org (Christopher Davis) writes:
  14.  
  15. >MC> == Michael Cook <mcook@fendahl.dev.cdx.mot.com> 
  16.  
  17. > MC> How about this idea: There should be a way to specify in a Perl
  18. > MC> script what version of Perl the script was written for.  Then, as
  19. > MC> new keywords and other non-backwardly-compatible functionality are
  20. > MC> added, old scripts could still likely work correctly.
  21.  
  22. >(The real solution would be not to use lower case unquoted strings, and
  23. >trust in Larry not to break anything.  Or hard-code the version, say:
  24. >#!/usr/local/bin/perl4.035 -- #-*-Perl-*-)
  25.  
  26. You have a particular class of incompatibilities in mind.  What about those
  27. like the hack that enables bitwise operations on strings: perl searches for
  28. use of the keyword 'vec'.
  29.  
  30. Larry says that Perl 5.0 may let us invoke subroutines by doing foo() instead
  31. of &foo().  Does that mean we have to pick a new naming convention for
  32. subroutines, such as FOO() or Foo(), to avoid using future keywords?  There
  33. may be a clever fix for this conflict, too.  But maybe there's a generalized
  34. solution...
  35.  
  36. BTW, the "version specifier" should have file scope.  A require'd file might
  37. have been written for a different version of Perl.
  38.  
  39. Michael.
  40.