home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / perl / 7711 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  2.0 KB

  1. Path: sparky!uunet!psinntp!alsys1!yu1.yu.edu!manaster
  2. From: manaster@yu1.yu.edu (Chaim Manaster)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: *sigh* Yes, the eternal question: How do I run it under 4dos aga
  5. Message-ID: <1267@alsys1.aecom.yu.edu>
  6. Date: 7 Jan 93 22:43:43 GMT
  7. References: <kenc.725847059@sol> <0L1PwB5w165w@cybrspc.UUCP>
  8. Sender: news@alsys1.aecom.yu.edu
  9. Organization: School of Engineering and Applied Sciences, UCLA
  10. Lines: 42
  11. Nntp-Posting-Host: yu1.yu.edu
  12.  
  13. In article <0L1PwB5w165w@cybrspc.UUCP> roy%cybrspc@cs.umn.edu (Roy M. Silvernail) writes:
  14. >kenc@sol.acs.unt.edu (Ken Corey - Operator) writes:
  15. >
  16. >> anyway, what's the line I put in 4dos.ini so that 4dos recognixses .pl as an 
  17. >> executable, and runs perl on that script?
  18. >
  19. >Not in the .ini, but in autoexec.bat, put
  20. >
  21. >set .pl=c:\where\ever\perl.exe
  22. >
  23. >Works for me.  For command line flags, put 'em in the #!/usr/bin/perl
  24. >line at the beginning of the script.
  25. >--
  26.  
  27. Could you provide an example of  using the command line flags and
  28. how they go into the #!/usr/bin/perl line when using 4dos. Also
  29. what would the actual command line inokation be? Also is there a
  30. difference between "flags" and file parameters on the command line?
  31.  
  32. I also don't quite understand the logic here? Isn't the # sign the
  33. comment marker in DOS, so how is anything on that line actually
  34. used? Also in DOS it is the \ rather than the / that demarks
  35. directories. Is this auto translated?
  36.  
  37. Also, how are the flags and parameters from either the command line
  38. or the #! line referenced in the Perl script. I thought I
  39. understood this in the Unix version, but I am even more confused
  40. in the DOs versions. I am obviously new to all of this.
  41.  
  42. Thanks for the help.
  43.  
  44. Henry Manaster
  45.  
  46. -- 
  47. ***************************************************************************
  48.     Henry Manaster          *     EMail: manaster@yu1.yu.edu
  49.     Brooklyn, NY            *
  50.                                 *
  51.     Disclaimer: The above is not necessarily MY opinion nor that 
  52.                 of anyone else :-)  ????!
  53. ****************************************************************************
  54.  
  55.