bgreenlee has asked for the wisdom of the Perl Monks concerning the following question:
Monks-
I just ran into this syntax for the first time, and I'm not finding info on it in the docs:
package Foo; my Foo $bar = 42;
(specifically, the "my Foo $bar" bit of it.)
(Update: snipped the irrelevant bit about Invalid SCALAR attribute and made it its own question.)
Explanations are appreciated, but I'm happy to be pointed in the direction of the appropriate pod(s).
Cheers,
Brad
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What does "my Foo $bar" do?
by Joost (Canon) on Aug 08, 2004 at 12:34 UTC | |
|
Re: What does "my Foo $bar" do?
by tachyon (Chancellor) on Aug 08, 2004 at 09:12 UTC | |
by Joost (Canon) on Aug 08, 2004 at 12:37 UTC | |
by bgreenlee (Friar) on Aug 08, 2004 at 09:25 UTC | |
by PodMaster (Abbot) on Aug 08, 2004 at 09:53 UTC | |
by tachyon (Chancellor) on Aug 08, 2004 at 09:53 UTC | |
|
Re: What does "my Foo $bar" do?
by perrin (Chancellor) on Aug 08, 2004 at 17:38 UTC | |
by Joost (Canon) on Aug 09, 2004 at 01:10 UTC | |
by perrin (Chancellor) on Aug 09, 2004 at 01:35 UTC | |
by Joost (Canon) on Aug 09, 2004 at 01:45 UTC |