Path: utzoo!mnetor!uunet!husc6!mailrus!umix!umich!mibte!gamma!ulysses!thumper!faline!bellcore!tness7!ninja!sys1!techsup!cpe!tif
From: tif@cpe.UUCP
Newsgroups: comp.sources.d
Subject: Re: Perl: Hacking The !# Simulation
Message-ID: <6800012@cpe>
Date: 4 May 88 13:36:00 GMT
References: <67@uvaarpa.virginia.edu>
Lines: 19
Nf-ID: #R:uvaarpa.virginia.edu:67:cpe:6800012:000:684
Nf-From: cpe.UUCP!tif    May  4 08:36:00 1988


Written 10:01 am  May  2, 1988 by uvaarpa.UUCP!mer6g in cpe:comp.sources.d
>What if we could do something like this:
>
>eval "exec /bin/perl -S $0 $*"
>	if $running_via_sh;
>
>The -S switch would cause the script file to be searched for either using an
>algorithm implemented within perl (best case) or else by running a program
>(ksh, csh, sh) the path to which is configurable and compiled in (acceptable
>case).

Along this line, it sounds like perl should have a special variable
that is like $0 only contains a full path.  I guess that still leaves
the implementation technique in question.

			Paul Chamberlain
			Computer Product Engineering, Tandy Corp.
			ihnp4!sys1!cpe!tif