package Book::News; use Apache::Constants qw(:common); sub handler { my $r = shift; my $uri = $r->uri; my @sections = split "/", $uri; # in a real handler you'd do some DB lookup and return the story: # my $story = get_story(@sections); $r->send_http_header('text/plain'); print "Story matching @sections\n"; return OK; } 1;