my $command = 'paste ' . join(' ', @ARGV); open FH, $command .'|'; while { @one_line = split "\t", $_; # do something }