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

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??

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Using CGI param method
by sgifford (Prior) on Apr 21, 2004 at 15:12 UTC

    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.