Is Perl Installed? Don't use this script to check!
Over at use.perl.org Ovid recently posted How to tell if Perl is installed on your computer , an entry that points to a shell script that must die. Go and read the script in the post, I’ll wait.
Note: this isn’t his code and he’s blame free, he just found it and started waving it like a red flag so the anal shell scripters among us have something to moan about :)
Firstly why use ksh? The script doesn’t do anything neat so just use sh,
which exists on almost all Unix machines in some form (even if it’s bash
in a dress playing pretend). Secondly, why do a which perl
and then COMPLETELY IGNORE the results? You might as well just run
perl -V
on the command line as you’re using
$PATH
anyway. GAH!