$fld0 = "abcX"; $fld0 = "abcX\n"; #### if (substr($fld0, -1, 1) eq 'X') { next }