Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Check for another program availability

by haukex (Bishop)
on Apr 12, 2021 at 05:34 UTC ( #11131121=note: print w/replies, xml ) Need Help??


in reply to Re^2: 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.

That's correct, it's not portable, and I don't agree with the above advice, also due to the use of backticks (see Calling External Commands More Safely). which is just a short shell script (at least on Debian), it's not magic.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11131121]
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?