Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: For statement 2 html table

by esskar (Deacon)
on Jan 03, 2006 at 22:37 UTC ( [id://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: 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://520750]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-29 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found