2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00
confluent/confluent_perl/example.pl
Jarrod Johnson 36edb24b56 Add perl client library for confluent
For applications wishing to use perl to script to confluent,
this library facilitates that.
2014-05-20 13:37:27 -04:00

15 lines
304 B
Perl

use strict;
use warnings;
use Confluent::Client;
my $client = Confluent::Client->new();
$client->read('/nodes/n1/power/state');
my $data = $client->next_result();
while ($data) {
if (exists $data->{state}) {
print $data->{state}->{value} . "\n";
}
$data = $client->next_result();
}