X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fbb9d,6af61c436c2df610 X-Google-Attributes: gidfbb9d,public X-Google-ArrivalTime: 1994-08-09 15:20:29 PST Path: bga.com!news.sprintlink.net!sashimi.wwa.com!gagme.wwa.com!not-for-mail From: ehood@convex.com (Earl Hood) Newsgroups: rec.arts.ascii Subject: Talk & Perl program for processing ASCII to HTML Date: 9 Aug 1994 17:13:38 -0500 Organization: Engineering, Convex Computer Corporation, Richardson, Tx USA Lines: 22 Sender: boba@gagme.wwa.com Approved: boba@wwa.com Message-ID: <328v2i$dja@gagme.wwa.com> References: <326quu$d7k@gagme.wwa.com> NNTP-Posting-Host: gagme.wwa.com Just a side note: If you put ASCII art on the Web in an HTML file, make sure to translate "special" characters to entity references so Web browsers don't choke. Here's a simple Perl program that will procees an ASCII file from standard input and output the HTML version of the file to standard output for inclusion into an HTML document: #! /usr/bin/perl while (<>) { s/\&/\&/g; s//\>/g; print STDOUT; } # end --ewh