Mahdi A Sbeih wrote:
Hi all,

I am working on porting some scripts from unix to windows, and I noticed that perl ignores the first line of the script, and it seems I have to run the script like this:
D:\Perl\bin\perl.exe myscript.pl

if I run it like we do on unix:
./myscript.pl

it will search the path and it uses the perl found in the path env variable.


How can I make it to run exactly like Unix, meaning, just use the first line in the script?

Thanks,
Mahdi.






Hi Mahdi

The Sha-Bang line (path to the perl interpreter) is supported in windows also.You need tell the exact path to the perl interpreter.
For example

if you installed in c:\perl\

#!/perl/bin/perl

Windows will search only C: drive for this.


--
Thanks & Regards
Chandru

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to