Wednesday, September 19, 2012

How do you run a system or third party program without involving the shell?

#!/usr/bin/perl

use strict;
use warnings;

my $status = system ("vi", "urlify.sh");
if (($status >>= 8) != 0)
{
    die "Failed to run VI";
}

No comments :