From ef73f03b608c86b41b72e956f18bc82c035feb05 Mon Sep 17 00:00:00 2001 From: Emmanuel Kasper Date: Tue, 14 Feb 2017 14:36:31 +0100 Subject: [PATCH 1/1] Fix example to latest RestHandler looking at the handle() sub from RestHandler.pm my $result = &$func($param); this parameters are not passed anymore --- README.dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.dev b/README.dev index a97f1c8..f68c169 100644 --- a/README.dev +++ b/README.dev @@ -166,7 +166,7 @@ __PACKAGE__->register_method ({ type => 'string', }, code => sub { - my ($conn, $resp, $param) = @_; + my ($param) = @_; return $param->{text}; } -- 2.39.2