Common guys,

It is true that windows does not care about the location of perl but it does
care about
the operators like "-w".  If you are concern with the location of perl, then
an easy way
is to set it up for the PC directory structure and then go to your unix and
create
a link with the same structure, but point it to the "/usr/bin/perl" or
whatever.

"#!/perl/bin/perl"

"mkdir /perl"
"mkdir /perl/bin"
"ln -s /perl/bin/perl  /usr/bin/perl"

Would this work?

In reality you only need to set it for the unix type os, but be awared of
the operators.

Nestor :-)
----- Original Message -----
From: "Robert Howard" <[EMAIL PROTECTED]>
To: "'Alan C.'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 4:52 PM
Subject: RE: shebang line that works for multiple Perl binary locations


> Unless I am mistaken, on windows machines, it doesn't really matter where
> the #!/usr/local/bin/perl line goes. As long as your have the file
> associations set and tell the IIS server how to handle files with the
> extension of .pl, you don't need it at all.
>
> R.A. Howard
>
> -----Original Message-----
> From: Alan C. [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 27, 2002 5:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: shebang line that works for multiple Perl binary locations
>
>
> Hi,
>
> I'm a newbie *ditto* I'd like to find for same as per your request
>
> But I'm guessing that ability to find perl anywhere might be a security
> concern.
>
> On my local (localhost Apache Win NT) machine I've been using
>
> #!/perl/bin/perl
>
> But when I upload then the Unix server needs something like
>
> #!/usr/local/bin/perl
>
> Thanks. Alan.
>
> At 01:29 PM 1/27/2002 -0800, you wrote:
> >I am new to this list, so sorry if this has been covered already.
> >
> >Is there any way to set up a shebang line that checks multiple potential
> >perl locations?
>
> <snipped>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to