/ Published in: Perl
Dumps a list of image names into an HTML document, wrapped in centered IMG tags. Features the CENTER tag for added historical value.
Expand |
Embed | Plain Text
#! /usr/bin/perl -w use strict; print "<html><head><title>Generated by Showsm.pl</title></head><body>\n"; while (<*\.[(jp)(gif)]*>) { #regex captures any filename with extension beginning "JP" #print "<img src=\"$_\" width=\"800\"><hr>\n"; #an image tag points to each file name } print "</body></html>"
You need to login to post a comment.
