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.

Re: [FishMonger] How can I run perl script from everywhere?
[In reply to]

Can't Post

Ok.. actually I'm using this install.pl script to do an initial configuration. It writes:

$ENV{'PATH'} = $ENV{'PATH'}.":".$myscriptDir;

so, yes, I can insert the path of my folder with myscript.pl (and other modules) inside the PATH environmental variable. In the first line of myscript.pl there is already the path to the perl interpreter. But I don't know what did you mean with "execute bit needs to be set"