Perl scripts
These Perl scripts are mainly useful to verify and correct the img tags in a large set of HTML files. I made them available under the GNU public license. Feel free to use these Perl scripts as long as you leave the GNU copyleft header inside the script source.
- Following the W3C HTML recommendations, the alt attribute must be specified in each <img> tag. alt_tagger.pl is a Perl script that scans a given directory recursively for HTML files to add at least an empty alt attribute alt="" to each img tag.
- You can use img_tagger.pl to ensure that the width and height attributes inside img tags have the correct values according to the dimensions of the referring GIF and JPEG images.
- utf2latin.pl and latin2utf.pl are two scripts that I use very often to convert strings from Latin-1 (aka ISO-8859-1) to UTF-8 and vice versa. Both scripts expect an inputfile as an argument and write their output to STDOUT: ./latin2utf.pl input.txt
All materials on these pages are sole property of the owner of the web site. Reproduction of any element is not allowed without prior agreement.
© 2000-2004 www.weckert.org - Disclaimer