in reply to CGI returns no data

Just a couple more suggestions:
  1. If you are going to use CGI.pm, then get into the habit of using the header() method to generate the content header. In fact, that method and param() are sometimes the only methods i need from CGI.pm:
    use CGI qw(param header); print header; if (param('form_submitted') { # process form and print results/errors, maybe reprint form } else { # print form }
  2. Don't use the name $CGIValues for a CGI.pm object. $CGI or $q will do just fine. The reason is that you don't have a handle to the $CGIValues, you have a handle to a CGI.pm object. If you want a handle to the CGI.pm parameter values, do the following:
    my $q = CGI->new; my @CGIValues = values %{$q->Vars};
    Seems more appriate for a variable named CGIValues ... although technically the values belong to the parameters, not CGI. More useful and meaningful is:
    my %param = $q->Vars; #update: typo (was %q->Vars) thanks BUU

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)