in reply to Re: Check for another program availability
in thread Check for another program availability

I see, but, would that be portable? I mean, the which program itself may not be available.

  • Comment on Re^2: Check for another program availability

Replies are listed 'Best First'.
Re^3: Check for another program availability
by haukex (Archbishop) on Apr 12, 2021 at 05:34 UTC
Re^3: Check for another program availability
by perlfan (Parson) on Apr 12, 2021 at 10:15 UTC
    > portable
    You didn't say it had to be "portable on Windows".

      It doesn't. But even on Unix I have no guarantee that which will be installed on the system.

        That exactly. And additionally, "which" might produce considerably different results in a (perl) script than on the command prompt, as some shells have "which" as a builtin or alias, so people *think* they have which (program) but in fact use the shell functionality.


        Enjoy, Have FUN! H.Merijn