it. It may be available to you from the command line but not available to your script. (actually to the sub-shell created by the
which is a sub-shell of the shell running perl which is a sub-shell of the command-line shell). You may also need to escape the $ so it gets passed to the
and not interpolated as a perl variable. Of course