Try this ...

if (defined $col) {
        :
} else {
        :
}

Or ...

unless (defined $col) {
        :
}

Steve

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, 4 March 2004 3:44 PM
> To: [EMAIL PROTECTED]
> Subject: NULL columns and undef
> 
> 
> 
> 
> 
> 
> I had an example of how to test if a variable is undef as a 
> result of being NULL in the database but I cannot find it. I 
> looked in perldoc -f undef and only found how to undef a 
> variable with the function. I thought there was a way to test 
> a variable to see if it's undef.
> --------------------------------------------------------------
> ------------------------
>   Important Warning: If you have received this email in 
> error, please advise the sender and delete the message and 
> attachments immediately. �This email, including attachments, 
> may contain confidential, legally privileged and/or copyright 
> information, the unauthorised use of which is prohibited. Any 
> views expressed in this email are those of the individual 
> sender, except where the sender expressly, and with 
> authority, states them to be the view of the Department of 
> Immigration and Multicultural and Indigenous Affairs (DIMIA). 
> �DIMIA respects your privacy and has obligations under the 
> Privacy Act 1988 (see www.immi.gov.au).
> --------------------------------------------------------------
> ------------------------
> 

Reply via email to