perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphael Manfredi <Raphael.Manfr...@st.com>
Subject Re: Help about $r->content( )
Date Wed, 01 Mar 2000 09:45:39 GMT
Quoting cholet@logilune.com:
:$r->args will read the query string (for GET requests)
:$r->content will read the data from a POST.
:
:This is code a lot of people use:
:
:	my %params = $r->method eq 'POST' ? $r->content : $r->args;

Shouldn't this be abstrated through a "->params" feature that would
do exactly the above? Low-level method probing like this is precisely
what OO programming attempts to mask.

Raphael

Mime
View raw message