Re: [GENERAL] Perl won't eval PgSQL boolean value

2001-09-05 Thread Peter Haworth
On Sun, 02 Sep 2001 20:01:27 -0400, Randall Perry wrote: > I've got an if statement that checks if a boolean value is true: > > if ($cust_data->{'hold'} eq 't') > > But perl will not evaluate the value. $cust_data->{'hold'} is taken from a > PgSQL boolean field (either t or f). If I use the co

Re: [GENERAL] Perl won't eval PgSQL boolean value

2001-09-03 Thread Andrew Snow
001 10:01 AM > To: [EMAIL PROTECTED] > Subject: [GENERAL] Perl won't eval PgSQL boolean value > > > I've got an if statement that checks if a boolean value is true: > > if ($cust_data->{'hold'} eq 't') > > But perl will not evaluate the val

[GENERAL] Perl won't eval PgSQL boolean value

2001-09-03 Thread Randall Perry
I've got an if statement that checks if a boolean value is true: if ($cust_data->{'hold'} eq 't') But perl will not evaluate the value. $cust_data->{'hold'} is taken from a PgSQL boolean field (either t or f). If I use the construct above it tell me that 'eq' is not defined thinking it's a s