
FishMonger
Veteran
/ Moderator
Jul 4, 2013, 6:57 AM
Post #2 of 4
(2828 views)
|
Re: [angeloulivieri] How can I run perl script from everywhere?
[In reply to]
|
Can't Post
|
|
Your question is not real clear, but if by "from every path in the shell" you mean that the script could be in any one of the directories listed in your path environment, then all you need is to have the script's shebang line point to the perl interpreter and the execute bit needs to be set. If you mean that the script could be located anywhere outside of the paths listed in the path environment, then you'll need to specify that path when executing the script.
|