added match_true and match_false
[catagits/Web-Simple.git] / examples / hello-world / hello-world.cgi
index b24dc02..940847b 100644 (file)
@@ -5,7 +5,7 @@ use Web::Simple 'HelloWorld';
 {
   package HelloWorld;
 
-  dispatch {
+  sub dispatch_request {
     sub (GET) {
       [ 200, [ 'Content-type', 'text/plain' ], [ 'Hello world!' ] ]
     },