for my $i (@$times) { print qq{ <div class=\"forecast\"> <img src="$icons->{$i}" alt="" /> <br /> $i $conditions->{$i} <br /> $hilo->{$i}: $temperatures->{$i}\&deg;F <br /> PoP: $precip->{$i}\% </div> }; }


OUTPUT IS SOME WHAT SIMILAR TO THIS BUT IS USING DIV tags:

img
Today
Chance Rain
High: 58°F
PoP: 22%
img
Tomorrow
Chance Rain
High: 58°F
PoP: 22%
img
Friday
Chance Rain
High: 58°F
PoP: 22%


NOW, HOW CAN IT BE TURNED INTO THIS EXACT TABLE FORMAT? :

img img img
Today Tomorrow Friday
Chance Rain
Chance Rain
Chance Rain
High: 58°F
PoP: 22%
High: 58°F
PoP: 22%
High: 58°F
PoP: 22%


using the same for statement code... sorry *POST UPDATED* for below REPLY.

In reply to For statement 2 html table by senik148

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.