$cmp=substr(reverse($line),0,1); if ($cmp eq ";") {