[perl] 序列化和反序列化

来源:互联网 发布:淘宝卖死人穿过的衣服 编辑:程序博客网 时间:2024/06/08 17:24
use Storable;
use Storable qw(freeze thaw);

$buff = freeze(\@rows);      #对象序列化
@rows = @{thaw($buff)};     #对象反序列化
0 0