Re: Cant set args to $r->arg(undef);

2000-08-21 Thread Doug MacEachern

On Sun, 13 Aug 2000, Greg Cope wrote:

> Dear All
> 
> Although this in no longer important to me, I cannot appear to reset
> $r->arg to an empty value.

i think i already mentioned (but this message is not marked as replied),
this is fixed in cvs.




Cant set args to $r->arg(undef);

2000-08-13 Thread Greg Cope

Dear All

Although this in no longer important to me, I cannot appear to reset
$r->arg to an empty value.

I am writing a transhandler and if the args containted a certain value I
wanted to reset it to the args value without this value.

hence:


my $args = $r->args;

# remove value
$args =~ s/value//;

# resetting $r->args; 
$r->args($value);


If $args has more then value, then the args will be reset correctly.

However if $args, only contains value, and hence after the regex is now
empty, then the reset will not work, and $r->args() still contains the
orginal values...

Is this a bug / feature or just unexplained functionality ?

Greg Cope