I have a hard time believing it is a NOP. I actually first saw it right at the top of the synopsis section of the fields doc:
[snip] package Foo; use fields qw(foo bar _Foo_private); sub new { my Foo $self = shift; [snip]
As for the attributes example, the attributes doc claims the example is syntactically valid. I realize it is not supposed to "do" anything (other than, I would hope, compile); I'm just trying to grok attributes and fields and ran into these stumbling blocks.
Brad
In reply to Re^2: What does "my Foo $bar" do?
by bgreenlee
in thread What does "my Foo $bar" do?
by bgreenlee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |