没人知道么?<br><br>Mike.G<br><br><br><div class="gmail_quote">2009/9/7 Mike.G <span dir="ltr">&lt;<a href="mailto:hylinux@gmail.com">hylinux@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
好久没模Perl的语法了。<br>在看attributes的文档的时候一直出现这个语法,<div>比较郁闷。<br>哪位提点一下:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; use attributes ();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my ($x,@y,%z);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; attributes::-&gt;import(__PACKAGE__, \$x, &#39;Bent&#39;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; attributes::-&gt;import(__PACKAGE__, \@y, &#39;Bent&#39;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; attributes::-&gt;import(__PACKAGE__, \%z, &#39;Bent&#39;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ($x,@y,%z) = 1;<br><br><br>第一个地方:<br>attributes::这个写法是省略了什么来着?<br>第二个地方:<br>import<br>我记得是在use的时候自动的调用module的import方法是不是?(例如module require Exporter), 这样就有了一个缺省的import方法<br>


但是问题是attributes哪儿定义了这个方法呢?<br><br>请各位指点。<br><br>谢谢<br><font color="#888888"><font color="#888888"><br>Mike.G</font></font></div>
</blockquote></div><br>