|
From: Xin S. <xs...@um...> - 2009-07-18 05:10:51
|
Hi: Currently I come across the problem of mapping two operators [] and () overloading problem to perl. I have no idea how to map these two operators in perl. What I know is that in python, operator()(functional call) is automatically supported and mapped, while operator[] can be overloaded by adding __setitem()__ and __getitem()__ functions. Can anybody can tell me how to achieve that in perl? Thanks! -- Xin Shuai (David) PhD of Complex System in School of Informatics Indiana University Bloomington 812-606-8019 |