Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Perl CGI.PM: Use of uninitialized value $vals

by hippo (Bishop)
on Apr 30, 2018 at 08:28 UTC ( [id://1213793]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1213793]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-20 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found