Assuming it's in /usr/bin.
>make the test 'if [ -x `which perl` ]'.
Assuming the shell supports which.
What's wrong with just trying to run perl? $PATH is surprisingly (or
not if you have some common sense) helpful for this sort of thing.
-zefram