From: Emmanuel Kasper Date: Tue, 14 Feb 2017 13:36:31 +0000 (+0100) Subject: Fix example to latest RestHandler X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=ef73f03b608c86b41b72e956f18bc82c035feb05;hp=f5a73bff2c596acd7cc96d467dbf8f1d765645ad Fix example to latest RestHandler looking at the handle() sub from RestHandler.pm my $result = &$func($param); this parameters are not passed anymore --- 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}; }