All pastes #2436 Raw Edit

Anonymous

public text v1 · immutable
#2436 ·published 2004-11-28 09:31 UTC
rendered paste body
package NuFone::Services;
use Apache::Constants qw(OK DECLINED SERVER_ERROR);
use DBI;
use strict;

sub handler {
	my $r = shift;
	my $content;

	(my $function = $r->uri) =~ s!^/!!;
	if ($function eq 'rock') {
		$content = "We will rock you";
	} else {
		$content = "No soup for you";
	}
	$r->send_http_header('text/plain');			
	$r->print("$content\n");
	return OK;
};
1;