in reply to Opening Apps
If you care about the program's output, use backticks, like so:
Otherwise, you can use system:my $result = `ls /home`; print $result;
(although you should NEVER use cp when you can roll your own in perl)system('cp /tmp/foo /tmp/bar') || die "Can't run command";
Also, go see the thread on Running External Commands that has another method (pipe opens), plus valuable info on taint checking.
|
|---|