in reply to Re: Perl CGI.PM: Use of uninitialized value $vals
in thread Perl CGI.PM: Use of uninitialized value $vals

I do not have code calling the method index, but rindex yes.
  • Comment on Re^2: Perl CGI.PM: Use of uninitialized value $vals

Replies are listed 'Best First'.
Re^3: Perl CGI.PM: Use of uninitialized value $vals
by poj (Abbot) on Apr 30, 2018 at 09:17 UTC

    What version of CGI do you have ?. In 3.65 the code was

    sub STORE { my $self = shift; my $tag = shift; my $vals = shift; my @vals = index($vals,"\0")!=-1 ? split("\0",$vals) : $vals; $self->param(-name=>$tag,-value=>\@vals); }

    In 4.37 it is

    sub STORE { my $self = shift; my $tag = shift; my $vals = shift; my @vals = defined($vals) && index($vals,"\0")!=-1 ? split("\0",$v +als) : $vals; $self->param(-name=>$tag,-value=>\@vals); }
    poj
      Was 4.22. Have upgraded to 4.38. Thank you)))