Just another Perl shrine | |
PerlMonks |
Re^3: uninitialized value in join or stringby EvanCarroll (Chaplain) |
on Oct 31, 2005 at 10:08 UTC ( [id://504213]=note: print w/replies, xml ) | Need Help?? |
You could always map over the array and set the undef values to '', I would personally suggest keeping the database pristine. I would use nulls if it increases data clarity for a more ugly solution in the perl base. '' would violate a unique constraint where as multiple nulls woulden't for instance. Nulls are also open to the database implimentation, and can be optimized away very easily, an empty string however is kept as just as that, rather than a small pointer to null. Update: or a simple join ",", grep defined, @row; Evan Carroll www.EvanCarroll.com
In Section
Seekers of Perl Wisdom
|
|