in reply to A newbie's CGI- kinda problem

Hi,
The CGI module returns the list on request, using wantarray to determine your wishes. See the CGI docs.
just modify your code a bit:
foreach($q->param()){
  if(/^\w\d+/){
    $stuff .= $_; $stuff .= ":";
    my @v;
    $stuff .= join ',', (@v = $q->param("$_"));
    $stuff .= "\n\n";
  }
}
-anders

Replies are listed 'Best First'.
RE: Re: A newbie's CGI- kinda problem
by mikkoh (Beadle) on May 26, 2000 at 18:38 UTC
    Thanks! Works like a charm. I knew it had to be something quite simple -- just need more caffeine.. X-) //mjh