while() { my $t = substr($_, 259, 1); if($t eq "B") { print B $_; } else if ($t eq "T") { print T $_; } else if () { # and so on for at least 10 lines!... } } #### -- Joost downtime n. The period during which a system is error-free and immune from user input.