Hi Chandru,

Do I need to go to windows_explorer->Tools->Folder Options->File Types and associating the extension ".pl" with the "perl" executable?

What if the perl is in the D: drive not C:, also do I need to specify ".exe"


Thanks,
Mahdi.


Chandru wrote:

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.




--
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