Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You don't need the "xxxc=2" part of the query string as the CGI-module will know all by itself the number of parameters input, unless you use that value as some sort of (weak) checksum.
Anyhow it is far better to rely on CGI.pm (or its brethren such as CGI:Simple) to do the parsing. And in order to sequentially access the parameters just sort the key-values of the parameter-hash and use that sorted list to go through the values of the parameters. CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James In reply to Re: accessing random count CGI parameters
by CountZero
|
|