ok, I haven't had a whole lot of experience with perl, but I've been looking through some tutorials and yet I still can't get it to work. I'm just trying to get a basic hello world program to run, as below:
Program to do the obvious
print 'Hello world.'; # Print a message
but whenever I try to run it in my ssh terminal I get the following
: bad interpreter: No such file or directory
I've changed the permissions to 755 so that should be fine, and I've tried #!/usr/bin/perl, #!/usr/bin/perl5.8.4 (which I saw in the /usr/bin/ directory), and #!/usr/local/bin/perl, and they all give me the same thing. I've also tried doing this in a random directory, and in a cgi-bin directory.
I'm not sure if this means there is a problem with the actual perl interpreter or if I'm doing something wrong. Any help would be greatly appreciated.