in reply to Re^2: I come in peace for I seek your wisdom dear monks :)
in thread I come in peace for I seek your wisdom dear monks :)
Once you have given execute permission to the file, you can just type "helloword.pl" and it will run. Typing "perl helloworld.pl" explicitly starts the Perl interpreter and sends it the helloworld.pl file.In the above, yes, "perl helloworld.pl", helloworld.pl does not need execute permission because helloworld.pl is an input file to the command "perl". Normally one would give the .pl file execute permissions and omit the need to type "perl" explictly. Note: On Unix the "file extension" of .pl doesn't matter. On Windows, there are a couple of non-obvious steps required to get a .pl file to execute in all situations without having to type "perl" first. But that is not the question here.
If the OP cannot execute the .pl file, either the OP is in the wrong directory or has the wrong permissions or has the wrong shebang line or the path does not have the perl command.
My advice of:
Get helloworld.pl working in your default login directory before trying to move it or get it to run in a sub-directory.still appears solid to me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: I come in peace for I seek your wisdom dear monks :)
by JavaFan (Canon) on Dec 08, 2010 at 13:43 UTC |