Resolve “Couldn’t connect to the database Oracle DEVDB DBUSER – ORA-12557: TNS:protocol adapter not loadable (DBD ERROR: OCIServerAttach)”

When running perl script connecting to Oracle database, I was getting the following error: Couldn’t connect to the database Oracle DEVDB DBUSER – ORA-12557: TNS:protocol adapter not loadable (DBD ERROR: OCIServerAttach)