pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: stan <stanb@panix.com>
To: Ravi Krishna <srkrishna@gmx.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Determining the type of an obkect in plperl
Date: Thu, 5 Mar 2020 06:03:47 -0500
Message-ID: <20200305110347.GB2832@panix.com> (raw)
In-Reply-To: <em548f46bc-f6d0-48fa-9bbd-ec556546ecdf@desktop-n1em137>
References: <20200304232135.GA16468@panix.com>
	<em548f46bc-f6d0-48fa-9bbd-ec556546ecdf@desktop-n1em137>

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





view thread (8+ messages)  latest in thread

Message-ID: <20200305110347.GB2832@panix.com>
Permalink:  ../20200305110347.GB2832@panix.com/
Also on:    postgresql.org/message-id/20200305110347.GB2832@panix.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: stanb@panix.com, srkrishna@gmx.com
  Subject: Re: Determining the type of an obkect in plperl
  In-Reply-To: <20200305110347.GB2832@panix.com>
  References: <20200304232135.GA16468@panix.com> <em548f46bc-f6d0-48fa-9bbd-ec556546ecdf@desktop-n1em137> <20200305110347.GB2832@panix.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox