in reply to Changing every page at once...

You want to look at one of the templating mechanisms such as Template, HTML::Mason, or any of the bazillion others. Those will let you define content seperate from the presentation chunks and switch things around easily.