in reply to Readable HTML tables

Distributive property anyone?
use CGI qw(:standard); print table(Tr([ map td([ qw/foo bar baz/]), 1..10 ])); print table(Tr([ map td($_), $db->query('SELECT * FROM foo')->arrays ] +));
I find those perfectly readable. Shrug.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re: Readable HTML tables
by Juerd (Abbot) on Aug 26, 2003 at 05:41 UTC

    print table(Tr([ map td([ qw/foo bar baz/]), 1..10 ])); table { row { cell qw/foo bar baz/ } for 1..10 };
    It's just that I prefer {{}} to (([([])])), that's all... Unlike you, I don't find the CGI-ish solution perfectly readable.

    Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

      You don't have to break their being pure functions to get simple curlies - they can easily enough be rewritten to take a block. The curlies do look a little less busy. If you're consistent and sufficiently generous with your whitespace the paren-brackets are no less readable though, IMHO.

      Makeshifts last the longest.