Re: Bug in HTML::Form 0.03

Gisle Aas (gisle@activestate.com)
11 Mar 2001 23:46:04 -0800


BooK <book@netcourrier.com> writes:

> I am new to this list, to which I subscribed because of the following:
> the "action" method from HTML::Form has no effect when used to set the
> value of the action. I am using HTML::Form 0.03, which I just downloaded
> from CPAN.
> 
> Here's a patch to correct what seems to be a typo.
> 
> --- Form.pm.old	Mon Mar 12 00:40:43 2001
> +++ Form.pm	Mon Mar 12 00:41:07 2001
> @@ -185,7 +185,7 @@
>         *{$m} = sub {
>             my $self = shift;
>             my $old = $self->{$m};
> -           $self->{$m} = shift if $@;
> +           $self->{$m} = shift if @_;
>             $old;
>         };
>      }

This was a typo indeed.  Patch applied.  Thanks!

Regards,
Gisle