CGI.pm is a very usefull tool, it's great for form data parsing, making dropdown menus, writing cookies, and so on. But, personally I don't like using it for formatting all html output, to me it just complicates things. And If a non-programmer has to get in and change something, they are out of luck. I see absolutley nothing wrong with printing out straight html.
However, as many have mentioned above, Templating is a very nice option. I have started using templates for many reasons. One, the designers don't have to touch my code at all, they just make a pretty little html file and I run that through my program. Two, you can open html templates in GUI editors. While I still do most of my editing in TextPad, sometimes it's just faster and more efficient to do things in dreamweaver. Three, the code just looks better and is easier to manage when you don't have hundreds of lines of HTML to sift through. There are of course more advantages than that, but that was enough to change my mind.
-
thabenksta
my $name = 'Ben Kittrell';
$name=~s/^(.+)\s(.).+$/\L$1$2/g;
my $nick = 'tha' . $name . 'sta';