This is a pretty simple one... I just want to make a perl script executable without the preceding perl
command, and instead let the environment deduce the interpreter from the shebang line. Here is my sample script called test
:
#!/usr/bin/perl
print "Hey there\n";
I then use chmod 775 test
to make the script executable. If I use the command perl test
, I get the output Hey there
.
However, if I just type test
, I get no output. What's the deal? Why isn't my shebang line making the environment realize this is perl? Can someone please help me?