http://qs1969.pair.com?node_id=1213793


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

Something like this will do it (note the "-w" which I suppose you are using too):

#!/usr/bin/perl -w use CGI; CGI->STORE ('foo', undef);

So you can trigger this by passing an undefined parameter value to STORE() but only with "-w". Use warnings instead if you don't want to see it.

Replies are listed 'Best First'.
Re^2: Perl CGI.PM: Use of uninitialized value $vals
by Anonymous Monk on Apr 30, 2018 at 08:51 UTC
    I do not have any CGI code calling CGI->STORE. Perhaps something else that calls CGI->STORE indirectly? What could it be?
        No, I don't have the -w. My shebang line is this: #!/usr/bin/perl -T