in reply to Re^2: Not able to capture information
in thread Not able to capture information

Given he probably wants to print to a log file, you could remove the data storage overhead by changing

my @linearr; ... print @linearr;

to

use Tie::File; tie my @linearr, 'Tie::File', 'noa.log' or die $!; ... untie @linearr;

You still might want to tweak the internals of the loop.

-- Ken