Adam Turoff wrote:
> 
> On Wed, Sep 27, 2000 at 11:33:13AM -0700, Nathan Wiger wrote:
> > Ziggy, are you interested in this idea enough (at all?) to stick a note
> > about the 'header' function into the RFC? Or should I RFC it separately?
> 
> Adding headers() to the core language (or a similar pragma that is
> automagically invoked by cgi) would make more sense to me.  I'd be in
> favor of a new RFC.  Adding it into cgi sounds like we're on the
> road to spontaneously reinventing CGI.pm...
> 
> It has uses in HTTP, CGI and SMTP contexts, probably others.  Would
> be nice if there were some sort of interaction with 'open http $url' as
> well.   Perhaps that would be what supplies %HTTP (or %HEADERS) for
> incoming headers and does trickery with print and @HEADERS...

However, there are many different header schemes in existence - how are
we going to teach perl about new header formatting rules?

I am kind of worried that we extend perl with (CGI|HTTP|SMTP)-like
headers, and then the next version of SOAP (or whatever) comes out that
everyone wants to use two years from now, but is not compatible with the
built-in at all.

If headers are that common, write a Headers module and include it in the
various modules that need it.

Hildo

Reply via email to