Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

RE: Re: Newbie Question

by autark (Friar)
on Oct 25, 2000 at 14:11 UTC ( #38316=note: print w/replies, xml ) Need Help??


in reply to Re: Newbie Question
in thread Newbie Question

While you are quite right that the exec function in perl can be used to execute a command, it is seldom used by itself. Usually it is preceded by the fork function call.

To execute a program and fetch it's output, I would rather suggest either using the qx() construct or doing it by hand, open(F, "program|").

Autark.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2020-12-01 15:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (11 votes). Check out past polls.

    Notices?