Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: use CGI or die;

by jonadab (Parson)
on Jan 27, 2003 at 13:39 UTC ( #230222=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: use CGI or die;
in thread use CGI or die;

> The only option is for browsers to suddenly stop
> working on invalid X?HTML, but the chances of that
> happening are appoximately zero.

Suddenly? No. Most of the web is still a non-wellformed mixture of HTML3, HTML4, and imaginary tags made up by specific browsers. However, current browsers do choke on non-wellformed markup if it is served with a content-type of text/xml, and that's a first step. As things like XSLT and RDF start to catch on, sites that want to harness the value of those things will have to be redone in wellformed XML, and that's that. (They won't necessarily have to provide and validate against Schemata, but we have to start someplace.)

Incidentally, if CGI.pm is now improved to the point of being capable of producing anything that remotely resembles XHTML, maybe I should have another look at it; I've been avoiding it because of two things, and one was the execrable state of its output. If that has been shaped up, maybe the other thing (the tendency to obfuscate the Perl code) has been improved too, since I looked at it (which has been a bit), and I should have a second look.

 --jonadab


Comment on Re: use CGI or die;
Download Code
Re^2: use CGI or die;
by Aristotle (Chancellor) on Jan 27, 2003 at 16:10 UTC

    Using CGI to handle the logistics of server interaction and using it to produce your output are two very different things. I use it nearly exclusively for the former but almost never for the latter.

    Makeshifts last the longest.

      Good point but what do you use then to generate output ? Hand cut code, a module that does a more reasonable job than CGI or a full blown framework (in which case does it not parse the CGI for you anyway)? I realise this node is a little old so perhaps everyone has moved on to Maypole or similar by now but I am currently building my first web interface in a few years so I am browsing around for clues.

      Cheers,
      R.

      Pereant, qui ante nos nostra dixerunt!

        For output, I use a templating system.

        Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://230222]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2014-12-25 20:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls