Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j9dKj-0003Vh-CA for pgsql-general@arkaria.postgresql.org; Wed, 04 Mar 2020 23:21:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j9dKf-0000CX-Iw for pgsql-general@arkaria.postgresql.org; Wed, 04 Mar 2020 23:21:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j9dKf-0000CQ-9c for pgsql-general@lists.postgresql.org; Wed, 04 Mar 2020 23:21:41 +0000 Received: from mailbackend.panix.com ([166.84.1.89]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j9dKc-0001bg-IB for pgsql-general@lists.postgresql.org; Wed, 04 Mar 2020 23:21:40 +0000 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mailbackend.panix.com (Postfix) with ESMTP id 48XqdW4nY9z1HV3 for ; Wed, 4 Mar 2020 18:21:35 -0500 (EST) Received: by panix5.panix.com (Postfix, from userid 17622) id 48XqdW3G8zzfYm; Wed, 4 Mar 2020 18:21:35 -0500 (EST) Date: Wed, 4 Mar 2020 18:21:35 -0500 From: stan To: pgsql-general@lists.postgresql.org Subject: Determining the type of an obkect in plperl Message-ID: <20200304232135.GA16468@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: gVim List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Probably a bit off topic, but I suspect someone on this list knows how to do this. I am in the process of writing a plperl function. In this function I need to compare the data in the NEW versus OLD structures. I am writing this as a generic subroutine, so I am looping through and comparing the 2 to see what is different. Problem is, that I need to know whether to us n != or a ne comparison. how can I determine what the data type of the value element is? -- "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin