home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / perl / 7022 < prev    next >
Encoding:
Text File  |  1992-11-17  |  607 b   |  20 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!snorkelwacker.mit.edu!ira.uka.de!smurf.sub.org!easix!ibg1!ado
  3. From: ado@ibg1.ibg.sub.org (Christoph Adomeit)
  4. Subject: cpp fails in statements like pkg'foo(DEFINE)
  5. Organization: ibg
  6. Date: Tue, 17 Nov 1992 20:34:28 GMT
  7. Message-ID: <BxvntG.61x@ibg1.ibg.sub.org>
  8. Lines: 10
  9.  
  10. Hi folks,
  11. what is the golden way to prevent cpp from interpreting
  12. a statement like 
  13. #define DEFINE 99
  14. pkg'foo(DEFINE) 
  15. as a part of a string literal ?
  16. In the above examples DEFINE is not replaced by "99" because
  17. cpp thinks it's a string literal.
  18. -- 
  19. Origin: It's not a bug, it's a feature !
  20.