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 1j9oIE-00062y-7p for pgsql-general@arkaria.postgresql.org; Thu, 05 Mar 2020 11:03:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j9oID-0000mw-2M for pgsql-general@arkaria.postgresql.org; Thu, 05 Mar 2020 11:03:53 +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 1j9oIC-0000mo-P6 for pgsql-general@lists.postgresql.org; Thu, 05 Mar 2020 11:03:52 +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 1j9oI9-0007P0-MM for pgsql-general@lists.postgresql.org; Thu, 05 Mar 2020 11:03:52 +0000 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mailbackend.panix.com (Postfix) with ESMTP id 48Y7Cl6hSwz1h0f; Thu, 5 Mar 2020 06:03:47 -0500 (EST) Received: by panix5.panix.com (Postfix, from userid 17622) id 48Y7Cl5CfvzfYm; Thu, 5 Mar 2020 06:03:47 -0500 (EST) Date: Thu, 5 Mar 2020 06:03:47 -0500 From: stan To: Ravi Krishna Cc: pgsql-general@lists.postgresql.org Subject: Re: Determining the type of an obkect in plperl Message-ID: <20200305110347.GB2832@panix.com> References: <20200304232135.GA16468@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Editor: gVim List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Mar 05, 2020 at 12:27:12AM +0000, Ravi Krishna wrote: > > > > > how can I determine what the data type of the value element is? > > > perl has a ref function which can tell what type of object. > > https://perldoc.perl.org/functions/ref.html > > > > That was my goto answer, but see this in the docs: If the operand is not a reference, then the empty string will be returned. So after I assign this to a variable this function does not help. I may need to try using this against the actual _TD... hash Thanks. -- "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin