#write new header every 96 lines if(($.-1)/ 96 == int $. / 96){&writeheadder;}
#number of well within plate modulus 96 $plateseq = (($.-1)% 96)+1; $column = (($plateseq -1) % 12)+1; $row = int(($plateseq -1) / 12)+1;
# Row letter is ASCII A (65) ie 1 less than A + rownumber $alphanum = chr($row+64); print"$alphanum\t$column\t"; print"$_\tSomething\n"; } close(GENELIST); exit;