home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dove!dove.nist.gov!przemek
- From: przemek@rrdstrad.nist.gov (Przemek Klosowski)
- Newsgroups: comp.lang.perl
- Subject: Re: Problems with "-s" in #! line - help !
- Message-ID: <PRZEMEK.93Jan7112756@rrdstrad.nist.gov>
- Date: 7 Jan 93 16:27:56 GMT
- References: <peter.726325150@hilly>
- Sender: news@dove.nist.gov
- Organization: U. of Maryland/NIST
- Lines: 47
- In-reply-to: peter@micromuse.co.uk's message of 6 Jan 93 12:59:10 GMT
-
- In article <peter.726325150@hilly> peter@micromuse.co.uk (Peter Galbavy) writes:
-
- If the #! line reads:
-
- #!/usr/local/bin/perl -s
-
- All is OK'ish. But then add a comment for emacs:
-
- #!/usr/local/bin/perl -s # -*- Perl -*-
-
- I think it is a better policy to add
-
- # Local variables:
- # mode:Perl
- # End:
-
- at the end of the file, since different operating systems have different
- limits on the length of the #! line, so besides not working, your scripts
- may be non-portable :^)
-
- I use Wayne Mesard's dmacro package in Emacs, so that every new Perl file
- starts this way here:
-
-
- #!/usr/local/bin/perl
- # Copyright (c) 1993 Przemek Klosowski at NIST. All Rights Reserved
- # Filename: new.pl.
- # $Id$
- # Purpose:
- # Options:
- # History: przemek - Jan 7, 1993: Created.
-
-
- require "getopts.pl";
- &Getopts();
-
- # Local variables:
- # mode:Perl
- # End:
-
- --
- przemek klosowski (przemek@rrdstrad.nist.gov)
- Reactor Division (bldg. 235), E111
- National Institute of Standards and Technology
- Gaithersburg, MD 20899, USA
-
- (301) 975 6249
-