K::Raw - Low-level Perl bindings for k (aka q, aka kdb, aka kx)
use K::Raw; my $handle = khpu("localhost", $port, ""); my $handle = khpun("localhost", $port, "", $timeout_in_millis); k($handle, '4 + 4'); # 8 k($handle, q/"abc"/); # ['a', 'b', 'c'] k($handle, q/`foo`bar!(1;2)/); # { foo => 1, bar => 2 } k($handle, q/2012.03.24D12:13:14.15161728/); # '385906394151617280' # execute cmd asynchrounously k(-$handle, q/.u.upd[`t;(`foo;1.23)]/); # read an incoming message my $msg = k($handle); kclose($handle);
K::Raw wraps the C library defined by k.h and described here http://code.kx.com/wiki/Cookbook/InterfacingWithC .
K::Raw
K, Kx, http://kx.com
http://github.com/wjackson/k-perl
Whitney Jackson <whitney@cpan.org>
<whitney@cpan.org>
Copyright (c) 2011 Whitney Jackson. All rights reserved This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install K, copy and paste the appropriate command in to your terminal.
cpanm
cpanm K
CPAN shell
perl -MCPAN -e shell install K
For more information on module installation, please visit the detailed CPAN module installation guide.