- or download this
my $cmd = 'a_cmd';
my %options = (
...
my $cmd_str = join ' ', $cmd, map { "$_ $options{$_}" } keys %options;
my $output = qx/$cmd_str/;
- or download this
my $cmd = 'a_cmd';
my @options = (
...
-g => 100,
);
my $output = qx/$cmd @options/;
- or download this
my @options = (
-d => '/home/users', # you can add
...
-g => 100, # external program swithces?
-m => '', # boolean switch
);