in reply to Need help with a Simple File, transferring a plain text document to a plain HTML document
you'll get extra credits for your assignment using perl beautifier...so you can write your own syntax rules for highlighting etc and as a bonus the program generates html. If the files to word count are large, then don't use regex on whole file, use $words=sytem("wc mytextfile.txt") or write your own wc routine to add up the \w regex line per line. that's all...class dismissed :)