Subject: | which usage broken on (at least) solaris |
The usage of which in Crypt::DSA::KeyChain is broken.
On solaris (with a path set up to not include openssl), then the code:
my $openssl = `which openssl`;
chomp $openssl;
will produce:
: michaelb@do ~/workspace; perl
my $openssl = `which openssl`;
chomp $openssl;
print "'$openssl'\n";
'no openssl in /usr/bin /usr/sbin'
: michaelb@do ~/workspace;
which means that The Wrong Thing is done.
It is probably better to just run openssl, and test the value of $? to
see if it worked.