| From: | stan <stanb(at)panix(dot)com> |
|---|---|
| To: | Ravi Krishna <srkrishna(at)gmx(dot)com> |
| Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Determining the type of an obkect in plperl |
| Date: | 2020-03-05 11:03:47 |
| Message-ID: | 20200305110347.GB2832@panix.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | stan | 2020-03-05 11:21:49 | Re: Determining the type of an obkect in plperl |
| Previous Message | stan | 2020-03-05 10:59:10 | Re: Determining the type of an obkect in plperl |