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
Josephforeach $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; } }
In reply to thumbnail images from an array by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |