Skip to content

Instantly share code, notes, and snippets.

@kotaroito
Created December 10, 2011 14:37
Show Gist options
  • Save kotaroito/1455312 to your computer and use it in GitHub Desktop.
Save kotaroito/1455312 to your computer and use it in GitHub Desktop.
How to insert with Net::HandlerSocket::Simple
use strict;
use warnings;
use Net::HandlerSocket::Simple;
my $hs = Net::HandlerSocket::Simple->new(+{
host => 'localhost',
port => 9998,
wo_host => 'localhost',
wo_port => 9999,
});
for ( 1..10 ) {
$hs->insert('test.user', +{ id => $_, name => "kotaroito$_" });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment