sub DoOtherRequest { ... } elsif ($action eq "index") { &DoIndex(); ### 다음 단락 추가 } elsif ($action eq "titleindex") { &DoTitleIndex(); ### } elsif ($action eq "help") { # luke added &DoHelp(); ... }
### 다음 함수를 통채로 추가 sub DoTitleIndex { my (@list); my $index; print "Content-type: text/plain\n\n"; @list = &AllPagesList(); foreach $index (@list) { print $index."\r\n"; } }