http://qs321.pair.com?node_id=1233574


in reply to Re^2: CGI scoping question
in thread CGI scoping question

Several parameters are being set through classical forms
...
This orderby and desc fields are not
If you are sending a form to your script then the parameters in the URL are not available to CGI's param(). You need to use url_param()
my $index = $q->url_param('orderby');