Thanks for all your responses on this. As a number of you pointed out, this is not when a value is undefined, but because a function is called in list context and returns an empty list. Matt, thanks for the tip, scalar() is just what I need, and much better than concatenating an empty string. Cheers, Nigel