http://search.cpan.org/perldoc?MooseX::ClassAttribute
2010/1/7 Beckheng Lam <[email protected]>: > 恩,可能是思路的问题,放弃这个做法。 > 用一个方法直接返回变量。 > > Beckheng Lam wrote: > > Hi, > 在测试过程中,在一个类,定义一个`类变量`,使用了 > has 'user' => ( is => 'rw', default => sub {\%_table}, ); > 在外部访问User3->user()不行。 > 要如何表示? > > > -- > Perl乐事 -- http://www.perlersh.org > 我的博客 -- http://www.perlersh.org/blog.html > 揭谛揭谛,波罗揭谛,波罗僧揭谛,菩提萨婆诃。 > > -- > 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 > 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 > 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 > 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。 > > -- Fayland Lam // http://www.fayland.org/
-- 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
