Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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>";

Comment on Re: For statement 2 html table
Download Code
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
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 examining the Monastery: (8)
As of 2015-10-13 23:04 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (316 votes), past polls