the whole point to setting a shebang is so you *dont* have to type
/foo/bar/yada/quux/some/more/blah/perl

you can, if on *nix (DOSneyland will ignore the shebang), say:
./script

now, if you're in DOSneyland, like mentioned above, setting the shebang has
little effect, other then switches passed to the interpreter, ie:
#!c:\perl\bin\perl -w

will cause perl to run under -w, but does little for you in terms of
choosing the correct interpreter for the script.

just clearing things up,

Jos Boumans

----- Original Message -----
From: "Dave Hoover" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 12, 2001 7:50 AM
Subject: Re: How do I set @INC?


> Michael wrote:
> > I have a couple of PERL installations on my system.  How do I point perl
> at
> > the correct set of modules?  I tried setting @INC inline in my program,
> but
> > that did not work.
>
> You can use the path the Perl installation you want to use in your
shebang.
> Here's an example:
>
> #!/apps/perl/5.6.0/bin/perl
>
> Just remember that if you're trying to test the script from the command
> line, rather than typing:
>
> %  perl <script_name>
>
> instead you would type
>
> %  /apps/perl/5.6.0/bin/perl <script_name>
>
> HTH
>
> =====
> Dave Hoover
> "Twice blessed is help unlooked for." --Tolkien
> http://www.redsquirreldesign.com/dave
>
>
>

Reply via email to