Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: how to assign 'system' to a value, and eval it.

by Anonymous Monk
on Jun 10, 2024 at 01:06 UTC ( [id://11159858]=note: print w/replies, xml ) Need Help??


in reply to Re: how to assign 'system' to a value, and eval it.
in thread SOLVED:how to assign 'system' to a value, and eval it.

    if (length(`which $PRG`))

Use the core module IPC::Cmd for increased portability and functionality:

use IPC::Cmd 'can_run'; my $path = can_run($PRG);

Replies are listed 'Best First'.
Re^3: how to assign 'system' to a value, and eval it.
by vincentaxhe (Beadle) on Jun 10, 2024 at 01:59 UTC
    I don't know IPC has it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-09-18 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (24 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.