What you are asking for is very basic. Read through the CGI.pm documentation if you'd like more examples. The code snippets that have been posted here seem to cover exactly what you are looking for. If you need the name of all "variables" in your form, you do this:
#!/usr/bin/perl -wT
use strict;
use CGI;
my $q = CGI->new;
my @vars = $q->param; # <-- That's all there is to getting 'em
It's pretty simple. I don't see what you are having trouble with. That will handle any form you want to throw at it.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats. |