my $program = '/bin/foo'; my @arguments = ( '--option', 'argument with spaces', ); exec( $programm, @arguments ) or die "exec failed: $!\n";