in reply to Re: post variables in same order
in thread post variables in same order

In using CGI.pm, what do I need my "use" statement to refer to? I tried searching on CPAN for it, but that didn't help. I know I've seen it used before somewhere. Does "all_parameters()" return the list in a hash?
Thanks!!

Michael Jensen
michael at inshift.com
http://www.inshift.com

Replies are listed 'Best First'.
Re: Re: Re: post variables in same order
by dws (Chancellor) on Jun 28, 2002 at 16:10 UTC
    In using CGI.pm, what do I need my "use" statement to refer to?

    Hm.. all_parameters() doesn't seem to be part of the public API for CGI.pm. To use it, you need to create an instance of CGI, and invoke all_parameters() as a method call.

    use CGI; ... my $cgi = new CGI(); ... my @paramsInOrder = $cgi->all_parameters();
    should do what you need.