Hallo Felix,

thanx a lot :o)

   ... undef != $results[$i] ...

is the correct syntax, it shall prevent accessing unexisting array elements.

Have a nice weekend...
   Ralf



-----Original Message-----
From: Felix Geerinckx [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 03, 2002 12:04 PM
To: [EMAIL PROTECTED]
Subject: Re: $results[$i] fails :o(


on Fri, 03 May 2002 09:30:35 GMT, [EMAIL PROTECTED]
(Fritscher Ralf) wrote: 

> ... not undef $results[$i] ...

'undef' is an operator which undefines its argument, and always returns 
the undefined value. The expression 'not undef $results[$i] therefor 
will always be 'true', but in the meantime $results[$i] will become 
undefined.

You probably want

        ... defined $results[$i] ...

instead.

-- 
felix

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to