Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Output

by chromatic (Archbishop)
on May 10, 2000 at 00:20 UTC ( [id://10817]=note: print w/replies, xml ) Need Help??


in reply to Output

What does your data structure look like, when it's read into your program? If you have categories in an array, it's not too complicated:
while (@lines) { $output .= "<TR>"; for ( 1 .. 3 ) { $output .= "<TD>" . (shift @lines) . "</TD>"; } $output .= "</TR>"; }
You might use the following to make sure you have an appropriate number of things in @lines:
my $fill = scalar @lines % 3; while ($fill-- > 0) { push @lines, " "; }

Log In?
Username:
Password:

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

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

    No recent polls found