in reply to Re: the "our" declaration ?!!
in thread the "our" declaration ?!!
It's kinda like no strict 'vars';, but it only applies to a single variable.Thats a common but incomplete interpretation. "our" works also useful without "strict", so it's not about complaining or not.It means "yes, a package variable with that name exists, so don't complain about it."
And there are important differences to no strict 'vars', because the chosen namespace can be very different from what you expect: With our it's the stash of the package at declaration position, like with my where it's the lexpad at declaration position.
But with no strict 'vars' a "non-explicit" variable belongs to the actual package at the encounter position!
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: the "our" declaration ?!!
by ikegami (Patriarch) on Jan 20, 2009 at 18:49 UTC | |
by LanX (Saint) on Jan 20, 2009 at 21:46 UTC | |
by ikegami (Patriarch) on Jan 20, 2009 at 22:16 UTC | |
by tilly (Archbishop) on Jan 20, 2009 at 23:02 UTC | |
by ikegami (Patriarch) on Jan 21, 2009 at 01:42 UTC | |
| |
by LanX (Saint) on Jan 20, 2009 at 22:42 UTC | |
by ikegami (Patriarch) on Jan 20, 2009 at 22:51 UTC | |
|