in reply to lost wtih blank data

You could:

$xyz = '&nbsp;' if ! defined $xyz; print "<td colspan=x>$xyz</td>\n";

but maybe there is more you want to tell us about your problem?


True laziness is hard work

Replies are listed 'Best First'.
Re^2: lost wtih blank data
by bv (Friar) on Dec 09, 2009 at 02:57 UTC

    A shorter version (for Perl 5.10 and later) with the same meaning would be this:

    $xyz //= '&nbsp;'; print "<td colspan=x>$xyz</td>\n";

    But thinking about it just reminds me that my vim syntax highlighter doesn't understand these new 5.10 features.


    @_=qw; Just another Perl hacker,; ;$_=q=print "@_"= and eval;
Re^2: lost wtih blank data
by saffron (Initiate) on Dec 09, 2009 at 03:11 UTC

    Thank you for your help, I will try this. I bid you peace.