Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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
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: http://www.fremontvirtualoffice.com/forecast.pl

    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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2015-07-03 06:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls