home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / perl / 5045 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.7 KB  |  38 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!decwrl!concert!sas!mozart.unx.sas.com!foster!sherman
  3. From: sherman@unx.sas.com (Chris Sherman)
  4. Subject: Re: Problem with order of precedence, maybe
  5. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  6. Message-ID: <sherman.712540921@foster>
  7. Date: Fri, 31 Jul 1992 00:02:01 GMT
  8. References: <sherman.712450219@foster> <MERLYN.92Jul30065305@romulus.reed.edu>
  9. Nntp-Posting-Host: foster.unx.sas.com
  10. Organization: SAS Institute Inc.
  11. Lines: 25
  12.  
  13. In <MERLYN.92Jul30065305@romulus.reed.edu> merlyn@romulus.reed.edu (Randal L. Schwartz) writes:
  14.  
  15. >In article <sherman.712450219@foster> sherman@unx.sas.com (Chris Sherman) writes:
  16. >   According to the perl book, '&' comes before '!=', so theoretically, what
  17. >   numbers between 1-4 get hit should result in the same numbers getting hit
  18. >   on the second set of statements.
  19.  
  20. >Hmm.  According to *my* copy of the Camel Book (presuming that's the
  21. >"perl book" you are talking about), I see "&" at a *lower* precedence
  22. >than "!=", so I'd expected "!=" to bind more tightly, and that is in
  23. >fact what is happening.
  24.  
  25. Opps...  My mistake...  After continued study of the page in question, I 
  26. discovered that the chart is upsidedown.  (IMHO, of course  :)  Every other
  27. precedence chart I have ever read (all 3 of them, or so) listed highest to
  28. lowest precedence from the highest point on the page to the lowest. 
  29.  
  30. Sorry for wasting bandwidith with my stupid question.   I should RTFM 
  31. (can we still say 'F'? :)  more carefully.
  32.  
  33. -- 
  34.      ____/     /     /     __  /    _  _/    ____/
  35.     /         /     /     /   /      /     /          Chris Sherman
  36.    /         ___   /        _/      /          /
  37.  _____/   __/   __/   __/ _\    _____/   _____/           sherman@unx.sas.com
  38.