I have an executable tool which return data separated by tabs as output , the data is very huge ,and want the output of the tool be an input for Perl program for further processing , what is the preferred way from performance perspective to use
@res=`mytool`
and processing @res
or use the pipe operator to read the tool while returning the results an process it something like the below :
open(RES, "mytool |") or die "Couldn't fork: $!\n";
while (<RES>) { # ... }