home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Source / GNU / perl / Perl / vms / genopt.com < prev    next >
Encoding:
Text File  |  1994-10-18  |  469 b   |  19 lines

  1. $! generates options file for vms link
  2. $! p1 is filename and mode to open file (filename/write or filename/append)
  3. $! p2 is delimiter separating elements of list in p3
  4. $! p3 is list of items to be written, one per line, into options file
  5. $
  6. $ open file 'p1'
  7. $ element=0
  8. $loop:
  9. $ x=f$element(element,p2,p3)
  10. $ if x .eqs. p2 then goto out
  11. $ y=f$edit(x,"COLLAPSE")  ! lose spaces
  12. $ if y .nes. "" then write file y
  13. $ element=element+1
  14. $ goto loop
  15. $
  16. $out:
  17. $ close file
  18. $ exit
  19.