boboson has asked for the wisdom of the Perl Monks concerning the following question:
I know I can set the default value on the TMPL_VAR's but I can't apply that to all variables. Anyone have a cleaner solution?if($post{'page'}){ $self->session->param('page' => $post{'page'}); } elsif( (!$post{'page'}) && (!$self->session->param('page')) ) { $self->session->param('page' => 1); } else { $self->session->param('page' => 1); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: setting session variables
by tlm (Prior) on May 18, 2005 at 10:29 UTC | |
by boboson (Monk) on May 24, 2005 at 08:15 UTC | |
|
Re: setting session variables
by Thilosophy (Curate) on May 18, 2005 at 07:19 UTC | |
by boboson (Monk) on May 18, 2005 at 09:36 UTC | |
|
Re: setting session variables
by rjsaulakh (Beadle) on May 26, 2005 at 10:34 UTC |