File: AppWithParams.pm

package info (click to toggle)
libcgi-application-server-perl 0.063-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 224 kB
  • sloc: perl: 621; makefile: 4; javascript: 3
file content (24 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package AppWithParams;

use base 'CGI::Application';

sub setup {
	my $self = shift;
	$self->start_mode('mode1');
	$self->mode_param('rm');
	$self->run_modes(
	        'mode1' => 'a_run_mode',
	);
}	

sub a_run_mode {
    my ($self) = @_;
    
	return '<HTML><TITLE>' 
	    . $self->param('message')
	    . '</TITLE><BODY><H1>'
	    . $self->param('message')
	    . "</H1><HR></BODY></HTML>";		
}

1;