home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / perl / 5790 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.4 KB  |  39 lines

  1. Path: sparky!uunet!usc!rutgers!ub!dsinc!pitt.edu!djbpitt
  2. From: djbpitt+@pitt.edu (David J Birnbaum)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: aub problem finding sys/socket.ph
  5. Message-ID: <5639@blue.cis.pitt.edu.UUCP>
  6. Date: 9 Sep 92 13:02:48 GMT
  7. References: <5601@blue.cis.pitt.edu.UUCP> <1992Sep9.043504.7463@odin.corp.sgi.com> <1992Sep9.060810.6205@cs.ubc.ca>
  8. Sender: news+@pitt.edu
  9. Organization: University of Pittsburgh
  10. Lines: 27
  11.  
  12. In article <1992Sep9.060810.6205@cs.ubc.ca> dhami@cs.ubc.ca
  13. (Mandeep S Dhami) writes:
  14.  
  15. >>             Running with '#!/usr/local/bin/perl -I <X>' doesn't help.
  16. >
  17. >#! notation allows only ONE argument (for example you may use
  18. >-pi.bak but not -p -i.bak). This is the semantics of #! invocation
  19. >(at least on my system, SunOS) and has nothing to do with perl.
  20.  
  21. I have been told that my system (Ultrix 4.2) has a problem reading
  22. long #! lines, which I circumvent by preceding the first two lines
  23. of the script with:
  24.  
  25.     eval 'exec perl -S $0 ${1+"$@"}'
  26.             if 0;
  27.  
  28. I have also tried running aub without these lines, but by calling it as
  29. 'perl aub', i.e., getting to perl without relying on the #! line at all.
  30. The sys/socket.ph file is still unresponsive.
  31.  
  32. --David
  33.  
  34. -- 
  35. Professor David J. Birnbaum         djbpitt+@pitt.edu [Internet]
  36. The Royal York Apartments, #802     djbpitt@pittvms   [Bitnet]
  37. 3955 Bigelow Boulevard              voice: 1-412-687-4653
  38. Pittsburgh, PA  15123  USA          fax:   1-412-624-9714
  39.