er;
use Errno qw(:POSIX);
use HTTP::Request;
use HTTP::Status qw(:constants);
use JSON;
use LWP::UserAgent;
use Throw qw(throw classify);
use Try::Tiny qw(try catch);
tem doesn't exist, it throws an exception (error code 6).
Unlike C<stat>, it only returns in the JSON response the node name, type, and
whether it has any children. In addition, while C<stat> only re
er;
use Errno qw(:POSIX);
use HTTP::Request;
use HTTP::Status qw(:constants);
use JSON;
use LWP::UserAgent;
use Throw qw(throw classify);
use Try::Tiny qw(try catch);
;
};
if ($status = true) {
return ($JSON::true, $request_struct);
} else {
return ($JSON::false, '{"error":"Entry already exists"}');
}
}
;
};
if ($status = true) {
return ($JSON::true, $request_struct);
} else {
return ($JSON::false, '{"error":"Entry does not exist"}');
}
}
er;
use Errno qw(:POSIX);
use HTTP::Request;
use HTTP::Status qw(:constants);
use JSON;
use LWP::UserAgent;
use Throw qw(throw classify);
use Try::Tiny qw(try catch);
}
);
} else {
my $content = decode_json($response->content);
my $uri = $response->base->as_string;
tem doesn't exist, it throws an exception (error code 6).
Unlike C<stat>, it only returns in the JSON response the node name, type, and
whether it has any children. In addition, while C<stat> only re