Determining the type of an obkect in plperl - Mailing list pgsql-general

From stan
Subject Determining the type of an obkect in plperl
Date
Msg-id 20200304232135.GA16468@panix.com
Whole thread Raw
Responses Re: Determining the type of an obkect in plperl  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Determining the type of an obkect in plperl  ("Ravi Krishna" <srkrishna@gmx.com>)
List pgsql-general
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



pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Advice request : simultaneous function/data updates on many databases
Next
From: Adrian Klaver
Date:
Subject: Re: Advice request : simultaneous function/data updates on manydatabases