Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

HTML 1.0 Facelift

by Anonymous Monk
on Apr 21, 2000 at 06:24 UTC ( [id://8319]=CUFP: print w/replies, xml ) Need Help??

The code itself isn't extraordinary, but the task was quite large: a company I used to work for had a site written back in 1995, good ol' HTML 1.0. All the navigational headers, footers, and links were hard coded into well over 1000 pages; unfortunately, all of which were hand produced at different times by different people. They all looked the same, but the HTML behind the scenes was veeeery different at times. Enter perl, center stage: after capturing a recursive directory search of all html and shtml content, I wrote a script to open each listed file, scan for a variety of conditions within each (usually ill-formatted) page and make the necessary adjustments to a standardized format now using SSI to greatly reduce the headache. Less than 200 lines of code and a less than 1 minute run time. It missed a few of the pages that were *really* bad on the inside, but it also reported those to me, which I could take care of on my own. Major time saver.

Replies are listed 'Best First'.
RE: HTML 1.0 Facelift
by Simplicus (Monk) on Apr 21, 2000 at 17:29 UTC
    Oh, for the ability to vote for anonymous monks!
    Simplicus
RE: HTML 1.0 Facelift
by Simplicus (Monk) on Apr 21, 2000 at 17:28 UTC
    VERY neat. Isn't it amazing what you can accomplish when the tool (Perl) gets out of the way of the coder?
    Simplicus
      Please post the program so we can look at it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://8319]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-09-16 09:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (21 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.