For style points, use Image::Size to get sizes for HEIGHT and WIDTH tags. That'll make life easier on the browser side.
You might want to make that regex case independent, in case you end up with a .GIF.
Since you're already using CGI.pm methods/subroutines to generate some of your tags, you might consider going all the way.
In reply to Re: Display all images in a given directory
by dws
in thread Display all images in a given directory
by cjf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |