WoodyWeaver has asked for the wisdom of the Perl Monks concerning the following question:
Perl script has
In a global blockuse CGI; use CGI::Carp qw(warningsToBrowser fatalsToBrowser); use Data::Dump qw(dump);
and a little latermy $q = CGI->new; print '<!--', dump($q), "-->\n";
and in particular there is a parameter being passed, "orderby", which is set to 10, e.gif ($DEBUG) { print $q->hr; print $q->p('Debugging: '), $q->Dump, $q->hr; }
A couple of the parameters direct execution of a subroutine, and in that subroutine<li><strong>orderby</strong></li> <ul> <li>10</li>
but <!-- variables (index, desc) are (1, ) --> Why would index not be 10? What am I missing?my $index = $q->param('orderby'); my $desc = $q->param('desc'); $index = 1 if not defined $index; print "\n<!-- variables (index, desc) are ($index, $desc) -->\n" if +$DEBUG;
Back to
Seekers of Perl Wisdom