in reply to checking if new CGI worked

Calling CGI::param in list context will return the parameter *names*.

If you want the values, you'll have to do something like this:

my $q = CGI->new(); foreach my $param ($q->param()) { my $value = $q->param($param); print "$param => $value\n"; }
Note that this doesn't handle checkboxes particularly well, as you may have a query string that contains something like 'toppings=cherry&toppings=whipped%20cream&toppings=crumbled%20up%20cookie%20bits'.

If you expect multiple values back, though, you can call CGI::param() in list context, passing it the name of the checkbox group you might get multiple values from. Does that answer your question?

Replies are listed 'Best First'.
RE: Re: checking if new CGI worked - SOLVED :)
by jptxs (Curate) on Sep 28, 2000 at 03:35 UTC

    actually, all i want right now is to see if there are any names or values at all in there. I, of course, figured that out five seconds AFTER i posted. I'm grappling with something in this I may post though - so we shall see if this is over or not. Thanks, though, for entertaining my temporary, deadline-prompted insanity. :)

    -- I'm a solipsist, and so is everyone else. (think about it)