Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by hippo (Bishop)
on Apr 30, 2018 at 08:28 UTC ( #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? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2022-01-20 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (56 votes). Check out past polls.

    Notices?