Group
Extension

Statistics-RserveClient/lib/Statistics/RserveClient/test_funclib.pl


# Test Funclib.

# int8
# Should extract a byte from a binary string, at a given (optional) offset

my $buf = pack 'a8', 'a';

print "buf = $buf\n";

foreach ( unpack( "(a1)*", $buf ) ) {
    print sprintf( "%x", ord ), " ";
}
print "\n";



Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.