Hello Everyone, I am in need of a little help on a project that I am working on. Here's what I'm trying to accomplish: I am using a program that searches a flat-db and shows each search match in a new table row. I really need it to list out "Search Matches" in a table that would be 3 columns across and 4 rows down. Any suggestions on how to accomplish this or any online examples anyone knows of? Here's the snip of script:
foreach $line (@array){
if ($line =~ /\Q$search\E/i){
($category,$item_name,$item_price,$item_picture)=split(/\|/,$line);
print <<End_of_line;
<tr>
<td valign=top CLASS=MENU1>
<img src="$photo_loc/$photo1" width=75 height=75><BR>
<B>$item_name</B><BR>
$item_price<BR>
</td>
</TR>
End_of_line
}
}
Any help, or suggestions would be greatly appreciated! Lis
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.