0

On Windiws machine (using Wampserver or whatever, using perl or python), when I use such approach:

#!C:\perl\perl.exe 
print "hi"

and when I open localhost/file.pl , it works well. But If i remove first line (path to .exe), it doesn't.

Is there any way (either with htaccess or httpd.conf) , so without need of that first line in each .pl file, they were resolved to that path automatically?

sergiotarxz
  • 520
  • 2
  • 14
T.Todua
  • 53,146
  • 19
  • 236
  • 237
  • 2
    Check if this helps. https://stackoverflow.com/questions/2036577/how-do-i-ignore-the-perl-shebang-on-windows-with-apache-2 – Jigar Feb 16 '19 at 17:56
  • @Jigar I didn't even know that was named `shebang` , thanks ! – T.Todua Feb 16 '19 at 19:37
  • 1
    What you need to do is simply make your Server ignore the shebang `#!C:\perl\perl.exe` – Mobrine Hayde Feb 17 '19 at 13:29
  • @MobrineHayde so, it will use the path whatever is set in Windows automatically (which was created during perl installations), right? thanks! – T.Todua Feb 17 '19 at 14:09

0 Answers0