.. .. .. Sen = x Acc = y Cor = z .. #### x1 y1 z1 x2 y2 z2 etc #### while (<>) { # process list of files open (OUT, ">TEST"); chomp; /^Sen = (\S+).*/; /^Acc = (\S+).*/; /^Cor = (\S+).*/; push @array, "$1", "$2", "$3"; }