APM: Null fields and 100% porcessor
David Bluestein II
dbii at mudpuddle.com
Tue Apr 1 15:46:13 CST 2003
>>> while(my @newdata = $newsth->fetchrow_array()){
>>> print "Before: $newdata[1] - $newdata[2]\n";
>>> $newdata[1] = "N/A" if $newdata[1] eq "";
...
>>> 1)
>>> $newdata[3] = "N/A" if undef $newdata[3];
Do you mean you tried:
$newdata[3] = "N/A" if ! defined $newdata[3];
or what you wrote? undef undefines the value, while defined checks if it is
defined. Maybe that was the problem?
David
----------
David H. Bluestein II President & Lead Developer
dbii at interaction.net ii, inc.
http://www.interaction.net
- Specializing in Designing Interactive Websites -
- and Searchable Internet Databases -
More information about the Austin
mailing list