fix obvious errors in dispatchex
Arthur Axel 'fREW' Schmidt [Thu, 26 Nov 2009 16:12:37 +0000 (10:12 -0600)]
examples/dispatchex/dispatchex.cgi

index 9c357a5..83ba9d1 100644 (file)
@@ -2,13 +2,13 @@ use Web::Simple 'DispatchEx';
 
 package DispatchEx;
 
-dispatch [
-  filter_response {
+dispatch {
+  response_filter {
     [ 200, [ 'Content-type' => 'text/plain' ], $_[1] ];
   },
   subdispatch sub (.html) {
     [
-      filter_response { [ @{$_[1]}, '.html' ] },
+      response_filter { [ @{$_[1]}, '.html' ] },
       sub (/foo) { [ '/foo' ] },
     ]
   },
@@ -24,6 +24,6 @@ dispatch [
       }
     ]
   }
-];
+};
 
 DispatchEx->run_if_script;