Steven and Ronald J. Kimball both pointed this out; sorry for the sloppy code. I had grabbed my example from a script where I was fetching only text data. Using 'defined' is obviously a better, more general solution.
-- David Dierauer Database Programmer CoreComm On Fri, 4 Jan 2002 [EMAIL PROTECTED] wrote: > > > -- David Dierauer <[EMAIL PROTECTED]> on 01/04/02 11:02:36 -0500 > > > $each ||= ""; > > This only works if the value 0, string '0' and string '' > are not valid. Otherwise you have to check via defined. > > -- > Steven Lembark 2930 W. Palmer > Workhorse Computing Chicago, IL 60647 > +1 800 762 1582 >
