Re: cvs commit: modperl/src/modules/perl Apache.xs

2000-08-15 Thread Ask Bjoern Hansen

On Tue, 15 Aug 2000, brian moseley wrote:

> On Tue, 15 Aug 2000, Doug MacEachern wrote:
> 
> > what do you mean?  args in or out?  $r->args($string)
> > just does a blind copy.  @args = $r->args just splits on
> > &,=, it's up to the caller to deal with multiple args of
> > the same name.
> 
> hm. what about %args = $r->args? won't that give me only the
> last arg value?

then the caller isn't dealing with it. ;-) (or he is, but as you
said ...)

> i suppose i should just do @args = $r->args. thanks for the
> reminder.


 - ask

-- 
ask bjoern hansen - 
more than 70M impressions per day, 




Re: cvs commit: modperl/src/modules/perl Apache.xs

2000-08-15 Thread Doug MacEachern

On Tue, 15 Aug 2000, brian moseley wrote:
 
> hm. what about %args = $r->args? won't that give me only the
> last arg value? i suppose i should just do @args = $r->args.
> thanks for the reminder.

yeah.




Re: cvs commit: modperl/src/modules/perl Apache.xs

2000-08-15 Thread ___cliff rayman___

brian moseley wrote:

> On Tue, 15 Aug 2000, Doug MacEachern wrote:
>
> > what do you mean?  args in or out?  $r->args($string)
> > just does a blind copy.  @args = $r->args just splits on
> > &,=, it's up to the caller to deal with multiple args of
> > the same name.
>
> hm. what about %args = $r->args? won't that give me only the
> last arg value?

sure would.

> i suppose i should just do @args = $r->args.
> thanks for the reminder.

if you are going to have multiple args with the same name you will have
to put them in an array and handle the duplicate information in your
software.


--
___cliff [EMAIL PROTECTED]http://www.genwax.com/





Re: cvs commit: modperl/src/modules/perl Apache.xs

2000-08-15 Thread brian moseley

On Tue, 15 Aug 2000, Doug MacEachern wrote:

> what do you mean?  args in or out?  $r->args($string)
> just does a blind copy.  @args = $r->args just splits on
> &,=, it's up to the caller to deal with multiple args of
> the same name.

hm. what about %args = $r->args? won't that give me only the
last arg value? i suppose i should just do @args = $r->args.
thanks for the reminder.




Re: cvs commit: modperl/src/modules/perl Apache.xs

2000-08-15 Thread Doug MacEachern

On Mon, 14 Aug 2000, brian moseley wrote:

> On 15 Aug 2000 [EMAIL PROTECTED] wrote:
> 
> >   Log:
> >   fix $r->args(undef)
> 
> speaking of which... does $r->args handle multiple args with
> the same name correctly? the docs imply that it doesn't. i
> haven't tried it myself to see.

what do you mean?  args in or out?  $r->args($string) just does a blind
copy.  @args = $r->args just splits on &,=, it's up to the caller to deal
with multiple args of the same name.
 
> if i'm using Apache::Request, does setting a param get
> translated back down into $r->args? prolly not huh.

nope.
 
> i recently had the situation in webmail where i had to
> unescape, utf8-encode, and re-escape each param value, and
> then reformulate the query string. would have been cool if i
> could have just stepped through $r->param and set the values
> for each param, and then used $r->args at the very end.

yeah, i think i had to do something like that in webmail/calendar, there
might even be a comment like #should add something like this to libapreq
just haven't got around to it yet ;-/




Re: cvs commit: modperl/src/modules/perl Apache.xs

2000-08-14 Thread brian moseley

On 15 Aug 2000 [EMAIL PROTECTED] wrote:

>   Log:
>   fix $r->args(undef)

speaking of which... does $r->args handle multiple args with
the same name correctly? the docs imply that it doesn't. i
haven't tried it myself to see.

if i'm using Apache::Request, does setting a param get
translated back down into $r->args? prolly not huh.

i recently had the situation in webmail where i had to
unescape, utf8-encode, and re-escape each param value, and
then reformulate the query string. would have been cool if i
could have just stepped through $r->param and set the values
for each param, and then used $r->args at the very end.