in reply to Re^3: CHECKING IF HEADER DEFINED
in thread CHECKING IF HEADER DEFINED
From the documentation, you are expected to do this:
which really is just another way of writing this:sub setup { my $self = shift; $self->start_mode('mode1'); $self->mode_param('rm'); $self->run_modes( 'mode1' => 'do_stuff', 'mode2' => 'do_more_stuff', 'mode3' => 'do_something_else' ); }
it's just different boilerplate.if ($cgi{rm} eq 'mode1') { do_stuff } elsif($cgi{rm} eq 'mode2') { do_more_stuff } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: CHECKING IF HEADER DEFINED
by trwww (Priest) on Aug 06, 2010 at 07:26 UTC |