You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Greg Cope <gj...@rubberplant.freeserve.co.uk> on 2000/08/13 22:18:47 UTC
Cant set args to $r->arg(undef);
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
Re: Cant set args to $r->arg(undef);
Posted by Doug MacEachern <do...@covalent.net>.
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.