Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 contemplating the Monastery: (3)
As of 2024-07-21 20:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    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.