in reply to Re: What does "my Foo $bar" do?
in thread What does "my Foo $bar" do?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What does "my Foo $bar" do?
by PodMaster (Abbot) on Aug 08, 2004 at 09:53 UTC | |
|
Re^3: What does "my Foo $bar" do?
by tachyon (Chancellor) on Aug 08, 2004 at 09:53 UTC |