Perhaps this depends on the version of CGI, but 2.81 nor 2.89 at least do not export Vars() by default. You have to implicitly import ':cgi-lib' to call Vars() without using an object. That leaves us with either one of the following:
use CGI qw/:standard :cgi-lib/; my %FORM = Vars(); # OR use CGI ':standard'; my $q = new CGI; my %FORM = $q->Vars(); # Oddly enough, the following do NOT work: use CGI ':standard'; my %FORM = CGI->Vars(); # or my %FORM = CGI::Vars();
If the above content is missing any vital points or you feel that any of the information is misleading, incorrect or irrelevant, please feel free to downvote the post. At the same time, reply to this node or /msg me to tell me what is wrong with the post, so that I may update the node to the best of my ability. If you do not inform me as to why the post deserved a downvote, your vote does not have any significance and will be disregarded.
In reply to Re^2: Need help with writing to db file
by Coruscate
in thread Need help with writing to db file
by webstudioro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |