Note also that this code snippet is equivalent to $y: (defined $y)? $y :'undef' If $y is not defined, then it's undef, by (if you'll pardon me) definition. -- Quinn Weaver Consulting, LLC Full-stack web design and development http://quinnweaver.com/ 510-520-5217