if (!$obj->getDDL()) { ##use $obj->{ERROR_STR} } ##call other method