home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mentor / 341 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.1 KB  |  23 lines

  1. Newsgroups: comp.sys.mentor
  2. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!hpscit.sc.hp.com!news.dtc.hp.com!srgenprp!john
  3. From: john@sad.hp.com (John Ruf)
  4. Subject: Re: Help on circumflex operator in Ample
  5. Sender: news@srgenprp.sr.hp.com (placeholder for future)
  6. Message-ID: <C17yDM.EA2@srgenprp.sr.hp.com>
  7. Date: Thu, 21 Jan 1993 19:34:34 GMT
  8. Distribution: usa
  9. References: <1993Jan20.202145.20006@cbnewsm.cb.att.com>
  10. Organization: HP Sonoma County (SRSD/MWTD/MID)
  11. X-Newsreader: TIN [version 1.1.4 PL6]
  12. Lines: 9
  13.  
  14.   You do not need the "^" operator to accomplish what you want to do. The
  15. circumflex is used to evaluate a string, or in other words execute it as
  16. a command. So the problem you are having is that you are trying to make your
  17. string evaluate as if it were a command. You notice that $strcat has already
  18. take the value of dvever and stuck it on the end of your string constant.
  19. The only purpose for "^" that I can see is if you want to dynamically compose
  20. a command using string capability and then execute that command. I have used 
  21. the Common User Interface function $eval to execute a function call that was
  22. put together using strings.
  23.