Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: lost wtih blank data

by GrandFather (Saint)
on Dec 09, 2009 at 02:15 UTC ( [id://811852]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://811852]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-19 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found