my $day = ($base_vars{'day'} > $q->param('arrday')) ? $base_vars{'day'} : $q->param('arrday'); my $days_select = '<select><option></option>'; for (1..31) { my $s = ($_ == $day) ? ' selected' : ''; $days_select .= qq{<option$s></option>\n}; }
In reply to Re: CGI Programming Style With Empty Params
by tstock
in thread CGI Programming Style With Empty Params
by blackjudas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |