" Inserts raw data as the value of the specified key.",
" Note that <data> is usually JSON.",
],
putref => [
"putref <key> <perl data>",
" Inserts a serialized Perl d
{
print $o "Usage: getref <key>\n";
return
}
my $ser = Bot::Cobalt::Serializer->new('JSON');
unless ( $db->dbopen(ro => 1) ) {
print $o "Database open failure\n";
return
}
f;
eval { $ref = $ser->thaw($item) };
if ($@) {
print $o "Could not thaw value; maybe not JSON?\n";
return
}
unless (ref $ref) {
print $o "Thawed value not a reference\n";
r