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 (Archbishop)
on Apr 12, 2021 at 05:34 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11131121]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-18 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found