home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / perl / 6867 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  961 b 

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!elroy.jpl.nasa.gov!usc!news!netlabs!lwall
  2. From: lwall@netlabs.com (Larry Wall)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: equal treatment for "bare words?"
  5. Message-ID: <1992Nov6.021256.1698@netlabs.com>
  6. Date: 6 Nov 92 02:12:56 GMT
  7. References: <8608@blue.cis.pitt.edu.UUCP> <8709@blue.cis.pitt.edu.UUCP>
  8. Sender: news@netlabs.com
  9. Distribution: na
  10. Organization: NetLabs, Inc.
  11. Lines: 24
  12. Nntp-Posting-Host: scalpel.netlabs.com
  13.  
  14. In article <8709@blue.cis.pitt.edu.UUCP> rm55@cislabs.pitt.edu (Rudolph T Maceyko) writes:
  15. : I should point out that this inconsistency exists for all of the following
  16. : cases:
  17. : die/warn BAREWORD;
  18. : die/warn BAREWORD, "\n";
  19. : die/warn(BAREWORD);
  20. : die/warn(BAREWORD, "\n");
  21. : (all of the above act as if no argument had been passed to die or warn)
  22.  
  23. It works right in Perl 5:
  24.  
  25. $ perl
  26. warn HOWDY;
  27. __END__
  28. HOWDY at - line 1.
  29. $ perl
  30. kill HUP, $$;
  31. __END__
  32. Hangup
  33. $
  34.  
  35. Larry
  36.