Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: For statement 2 html table

by esskar (Deacon)
on Jan 03, 2006 at 22:37 UTC ( #520750=note: print w/replies, xml ) Need Help??

in reply to For statement 2 html table

what IF statement ?
print "<table><tr>"; for my $i (@$times) { print qq{ <td> <img src="$icons->{$i}" alt="" /> <br /> $i $conditions->{$i} <br /> $hilo->{$i}: $temperatures->{$i}\&deg;F <br /> PoP: $precip->{$i}\% </td> }; print "</tr></table>";

Replies are listed 'Best First'.
Re^2: For statement 2 html table
by SamCG (Hermit) on Jan 03, 2006 at 23:03 UTC
    update: re Esskar's post
    I think you're putting the values associated with $i next to each other, instead of on top of each other in columns...
Re^2: For statement 2 html table
by senik148 (Beadle) on Jan 04, 2006 at 02:16 UTC
    I just tried your code and this is what i get, you can view html source on the script if you like..

    here is the link for all of you:

    can anybody help? do you want me to post all the code, its just that FOR { statement } that i need to get working to output a horizontal looking table. not vertical.

    the rest is just the XML parsing, using modules.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2022-11-30 20:37 GMT
Find Nodes?
    Voting Booth?