It works for me, so you'll need to post a bit more information about what you're doing, what you expect to happen, and what's happening instead.
| [reply] |
use strict;
use CGI qw(:standard);
sub parse_form {
foreach $p (param()) {
$FORM{$p}= param($p);
}
}
Just trying to clarify what the use CGI qw(:standard)
module is doing? It already assigned an object for param so I can reference it above? I am just curious to what is going on in the above area??
| [reply] [d/l] |
From the docs, it looks like using :standard creates a default CGI object, which can be accessed using functions like param().
That's probably why the sample code I gave you didn't work; the default object was already created, so when it tried to read the data to create another one, there was no data.
| [reply] [d/l] [select] |