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

Re: Opening Apps

by ivey (Beadle)
on Jun 06, 2000 at 22:43 UTC ( [id://16698]=note: print w/replies, xml ) Need Help??


in reply to Opening Apps

Several solutions

If you care about the program's output, use backticks, like so:

my $result = `ls /home`; print $result;
Otherwise, you can use system:
system('cp /tmp/foo /tmp/bar') || die "Can't run command";
(although you should NEVER use cp when you can roll your own in perl)

Also, go see the thread on Running External Commands that has another method (pipe opens), plus valuable info on taint checking.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-29 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found