Hello Monks!

I an application that prints STDOUT like so:

work
computer:/tmp/image12.png
desk:/tmp/image102.png
lab:/tmp/image1122.png
home
laptop:/tmp/image162.png
bed:/tmp/image182.png
smokingroom:/tmp/image1012.png
gym
bench:/tmp/image1562.png
press:/tmp/image127.png
sauna:/tmp/image192.png
steam:/tmp/image12112.png
car
gps:/tmp/image12345.png
tires:/tmp/image11232.png
trunk:/tmp/image167662.png
door:/tmp/image129.png
bumper:/tmp/image172.png<br

That I would like to print to a web page. I would like to have a header (i.e. The lines with no : in them) and the 3, 4, 5, or six lines that follow (for each section) as thumbnails (all on one line from right to left.

Here is what I have (and not quite doing the trick).

thanks

foreach $tmp_file (@fileList){ my @tmp_array; chomp $tmp_file; @tmp_array=split(/:/, $tmp_file); $devgroup=$tmp_array[0]; if ($tmp_array[1] eq ""){ print $query->h3("Device group $devgroup"), $query->p, $query->hr; } else { print $query->img({-src=>$tmp_array[1], -align=>'center', -width=>'750', -height=>'625'}), $query->br; } }
Joseph

In reply to thumbnail images from an array by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.