my $q = new CGI; my $name = $q->param('user_name'); my $gender = $q->param('gender'); my $real_name = $q->param('real_name'); my $city = $q->param('city'); my $country = $q->param('country'); my $email = $q->param('email'); my $confirmemail = $q->param('confirmemail'); my $mm = $q->param('birthmm'); my $dd = $q->param('birthdd'); my $yy = $q->param('birthyy');
A block of code like this always hits my pet-peeve meter. The coder then goes off and only use the scalars in ways that the $q->param('varname') call would be just fine. What am I missing that makes people write redundant blocks of useless assignments like this?
Is there a good reason that I am just not aware of? I ask because when you see somthing so often you have to question whether it is yourself that is wrong.
In reply to CGI and why? by Sifmole
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |