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

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!axion!micromuse!hilly!peter
  2. From: peter@micromuse.co.uk (Peter Galbavy)
  3. Newsgroups: comp.lang.perl
  4. Subject: Problems with "-s" in #! line - help !
  5. Message-ID: <peter.726325150@hilly>
  6. Date: 6 Jan 93 12:59:10 GMT
  7. Organization: MicroMuse Limited, London, England.
  8. Lines: 28
  9.  
  10. OK. If this is fixed in 4.035 sorry.
  11.  
  12. I have a script (well about 10) that I want to use the -s option with
  13. just to pickup things like -debug etc.
  14.  
  15. If the #! line reads:
  16.  
  17. #!/usr/local/bin/perl -s
  18.  
  19. All is OK'ish. But then add a comment for emacs:
  20.  
  21. #!/usr/local/bin/perl -s        # -*- Perl -*-
  22.  
  23. and perl bombs out with:
  24.  
  25. "Unrecognized switch: - # -*- P."
  26.  
  27. I tried adding a "--" as well, and get:
  28.  
  29. "Unrecognized switch: - -- # -*."
  30.  
  31. Is this a bug or have I compiled perl wrong ?
  32.  
  33. Thanks all,
  34. -- 
  35. Peter Galbavy
  36. Tech Support, Micromuse Ltd
  37. Phone: +44 71 352 7774        E-Mail: P.Galbavy@micromuse.co.uk
  38.