my $arg1 = ('-switcha . -switchb l -switchc'); my $arg2 = ('+15'); my $arg3 = ('filename argument'); system("/path/to/command $arg1 $arg2 | $arg3");