首先声明一点:我不确定自己这样做的方法是否是最好的方法。
A bit of a disclaimer is in order: I am not at all sure that my way of doing this was the best way.
这样做的方法是,Perl 对象包含一个只读的整数,此整数与函数 newsession() 返回的空指针相对应。
The way this is set up, the Perl object contains a read-only integer that corresponds to the void pointer returned by newsession().
如果能够控制原始模式和数据模型,这样做是可以的,这种方法也许是理想的方法。
This makes sense if you have control over the original schemas and data model, and it might be the ideal approach.
应用推荐