Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Check for another program availability

by hrcerq (Scribe)
on Apr 11, 2021 at 22:49 UTC ( #11131111=note: print w/replies, xml ) Need Help??


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 (Bishop) on Apr 12, 2021 at 05:34 UTC
Re^3: Check for another program availability
by perlfan (Vicar) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11131111]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2021-06-13 21:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (58 votes). Check out past polls.

    Notices?