I just wrote a perl file named "script.pl". and I want to run it.
I type in Unix "perl script.pl" and it runs well.
However, when I write "script.pl" it doesn't execute and gives a warning of "command not found".
Unlike in Windows, in Unix current directory is not in the PATH by default. In the command I explicitly specify path to the command. If that command work, you could put that file into your "trusted directory" (I use <my home>/bin) and add it to your path variable.
You also must have an "executable" bit set on that file. You can set it by issuing "chmod +x script.pl" command.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop