in reply to Re^6: System call doesn't recognise '>'
in thread System call doesn't recognise '>'

This code is not what was suggested:

my @array = ($command, "$arg1 $arg2 $arg3"); system (@array);

What was suggested to you was:

my @array = ($command, "$arg1 $arg2 $arg3"); system("@array"); # or, more verbose: my $cmd = join " ", @array; system ($cmd) == 0 or die "Couldn't launch [$cmd]: $!/$?";

Replies are listed 'Best First'.
Re^8: System call doesn't recognise '>'
by Lauras (Initiate) on Dec 10, 2008 at 21:33 UTC
    Both ways you describe work perfectly, but do not redirect the output.