in reply to Re: accessing random count CGI parameters
in thread accessing random count CGI parameters

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.

... just to extend that - "sort numerically", as in

perl -le 'print for sort {$a <=> $b} qw(bbb1 aaa2 ccc3 xxx15 def159)' bbb1 aaa2 ccc3 xxx15 def159

So the snippet would be

foreach my $key ( sort {$a <=> $b} $q->param() ) { my $value = $q->param($key); # now do whatever with $value ... }

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}