Created
December 10, 2011 14:37
-
-
Save kotaroito/1455312 to your computer and use it in GitHub Desktop.
How to insert with Net::HandlerSocket::Simple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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