Question by dharma: How do I figure out where the perl interpreter is for for my web host(will pick best answer)?
I dont know what to put for the shebang line. I need to upload the perl file and html file so my instructor can use it.
I am using hostingspot.com
No diea if its linux or unix like
I am using them as CGI scripts. I have been putting them in the CGI bin.
Best answer:
Answer by Jonas
Usually /usr/bin/perl …
You could also put “/usr/bin/env perl” in the shebang, which is probably more “correct”.
Have you tried “which perl” (assuming the host is a Linux or UNIX-like host)?
Are you trying to run the scripts as CGI scripts? Some hosts use different intepreters for that.
Know better? Leave your own answer in the comments!












