Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

RE: Re: Newbie Question

by autark (Friar)
on Oct 25, 2000 at 14:11 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://38316]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-24 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found