open FILE,") {$content.=$line} close FILE; $content=~s/\'/\'\'/g; ...... $SQL=<Sql($SQL)){ print "error1\n"; exit; } $SQL=<Sql($SQL)) { print "error2\n"; exit;} if($db->FetchRow()) { $data=$db->Data(); print "$data\n"; ###when <= 10,467 } else { print "no line\n";###when > 10,467 exit; }