Thanks.
That is what I have been led to believe, but when I remove the "Windows"
shebang from the first line, which is
#!c:/perl/bin/perl.exe
the script fails.
The path to Perl is OK. I linked *.cgi file types to Perl.exe. What else do
I need to do or not do?
Fraser
----- Original Message -----
From: "Mike Flannigan" <[email protected]>
To: <[email protected]>
Sent: Wednesday, January 29, 2014 6:27 AM
Subject: Re: [pm-h] Windows Shebang
Let me point out something that I suspect you all already
know. I run Perl on my personal Win7 machine and I don't
need a shebang at all - at least not in the Perl script.
When I upload a Perl script to my HostGator site, which
is a Linux based server I need the following shebang at
the top:
#!/usr/bin/perl -w
Now I'll sit quietly and probably learn a thing or two from
what others post about this subject.
Mike
On 1/29/2014 5:34 AM, Fraser Baker wrote:
This is the "windows" version of the shebang. This line is necessary for
the script to run even in window.
#!c:/perl/bin/perl.exe
What I want to do is to replace this line with the linux version or path
to perl yet it still run on the windows machine.
Fraser
----- Original Message ----- From: "Todd Rinaldo" <[email protected]>
To: "Houston.pm located in Houston, TX." <[email protected]>
Sent: Tuesday, January 28, 2014 9:01 PM
Subject: Re: [pm-h] Windows Shebang
On Tue, Jan 28, 2014 at 7:39 PM, Fraser Baker <[email protected]>
wrote:
I asked the group a while back about how to change the shebang to the
linux
version on a Windows box running Apache.
Can you re-state this? There is no linux version on a windows box. I'm
guessing you mean the perl version? do you have multiple perl
versions? If so what do you have?
There seemed to be consensus that
it could be done, but I can't figure it out. Someone said something
about
doing it thru Apache?
It depends on how you're running your scripts? I think you're using
cgi perl and I think the perl to use is specified by file extension on
windows if I remember correctly. But I'm hearing you say you've moved
your server over to Linux so your question is no clear.
I am moving over towards installing my application of a linux box, but
for
some reason want to keep developing on a Windows box ... OK so I am a
little
schitzo.
Nothing wrong with this. But you need to be much more verbose and
start at the beginning. I'm sure we can help if you give us all the
details.
_______________________________________________
Houston mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/houston
Website: http://houston.pm.org/
_______________________________________________
Houston mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/houston
Website: http://houston.pm.org/
_______________________________________________
Houston mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/houston
Website: http://houston.pm.org/
_______________________________________________
Houston mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/houston
Website: http://houston.pm.org/