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

Thanks I tried just exactly as you suggested and it doesnt work. Please advise if there is anything I can do to make this work?

Replies are listed 'Best First'.
Re: Re: Re: Using CGI param method
by sgifford (Prior) on Apr 20, 2004 at 17:53 UTC
    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.
      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.