in reply to Re: Re: Using CGI param method
in thread Using CGI param method

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.

Replies are listed 'Best First'.
Re: Re: Re: Re: Using CGI param method
by Anonymous Monk on Apr 21, 2004 at 11:50 UTC
    Thanks it now works:
    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??

      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.