in reply to RE: RE: RE: Adding a directory to $ENV{PATH}
in thread Adding a directory to $ENV{PATH}
Heck, if it wouldn't be an amazing nightmare, they'd have me writing Crypt::SSLeay (or an equivalent) just so we wouldn't have to rely on these folks installing openssl. Fortunately, that was just too much, so I'm relying on openssl (this is a program that uploads to a secure web server). I'm hoping that it's in the default install directory for openssl, but if it's not in the default path, I want to check that default directory.
I guess I'll just go back to the ugly
Update: I just re-read this, and it's not really clear what I mean about where I expect openssl to be. Try this instead: I'm hoping that openssl is in the user's PATH already1, but if it's not, I want to check against the default install directory for openssl as a sort of last resort. After all, we have openssl installed in that default install dir, but that dir isn't in my PATH either.chomp($openssl = `which openssl`); if ( !(-X $openssl)) { $openssl = "/usr/local/openssl/bin/openssl";} if ( !(-X $openssl)) { die "openssl required";}
|
|---|