home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / perl / 5039 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.5 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!wupost!darwin.sura.net!convex!tchrist
  2. From: tchrist@convex.COM (Tom Christiansen)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: Print difference between 4.019 and 4.035
  5. Message-ID: <1992Jul30.151404.10417@convex.com>
  6. Date: 30 Jul 92 15:14:04 GMT
  7. Article-I.D.: convex.1992Jul30.151404.10417
  8. References: <1992Jul30.115500.22617@uvaarpa.Virginia.EDU>
  9. Sender: usenet@convex.com (news access account)
  10. Reply-To: tchrist@convex.COM (Tom Christiansen)
  11. Organization: CONVEX Realtime Development, Colorado Springs, CO
  12. Lines: 26
  13. Originator: tchrist@convex.convex.com
  14. Nntp-Posting-Host: convex.convex.com
  15. X-Disclaimer: This message was written by a user at CONVEX Computer
  16.               Corp. The opinions expressed are those of the user and
  17.               not necessarily those of CONVEX.
  18.  
  19. From the keyboard of gaspar@stepsun.army.mil:
  20. :    print '-' x 80."\n";
  21. :
  22. :Under 4.035 I got the following error messages:
  23. :
  24. :    syntax error in file /usr/local/bin/logpipe2.pl at line 26, next 2
  25. :      tokens "80."\n\n""
  26. :
  27. :I fixed the problem by changing the offending lines to:
  28. :    print ('-' x 80)."\n";
  29.  
  30. Perl is being confused about whether you're talking about the
  31. number "80." (as in 80.0) or the concat operator.  That's why
  32.  
  33.     1 + 80 . 1
  34. and
  35.     1+80.1
  36.  
  37. are very different.
  38.  
  39. --tom
  40. -- 
  41. "GUIs normally make it simple to accomplish simple actions and impossible
  42. to accomplish complex actions."   --Doug Gwyn  (22/Jun/91 in comp.unix.wizards)
  43.  
  44.      Tom Christiansen           tchrist@convex.com      convex!tchrist
  45.