in reply to CGI.pm - put up or shut up

This is wrong:
sub Vars { my $self = shift; my @hash_list = (); my @params = $self->param; for my $param(@params) { my @values = $self->param($param); push @hash_list, ($param, (join /\000/, @values)); } return @hash_list; }
join() takes a string, not a regex. The patch:
sub Vars { my $self = shift; my @hash_list = (); my @params = $self->param; for my $param(@params) { my @values = $self->param($param); push @hash_list, ($param, (join "\0", @values)); } return @hash_list; }

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Replies are listed 'Best First'.
Re: Re: CGI.pm - put up or shut up
by doc (Scribe) on Nov 01, 2001 at 16:37 UTC

    Wow that's some serious nit picking with the code, I see it has bene patched. ++ Japhy for picking the faults.

    doc

    print "almost was a could have been";

Re: Re: CGI.pm - put up or shut up
by tachyon (Chancellor) on Nov 01, 2001 at 18:28 UTC

    Thanks Jeff