in reply to Re: globally seen variable
in thread globally seen vairable
package Foo; our $bar; # declares $Foo::bar for rest of lexical scope $bar = 20; .......................... # package Bar; use strict; print $bar; # prints 20, as it refers to $Foo::bar
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: globally seen variable
by moritz (Cardinal) on Sep 28, 2010 at 18:20 UTC | |
by vit (Friar) on Sep 28, 2010 at 21:27 UTC | |
by moritz (Cardinal) on Sep 29, 2010 at 08:41 UTC | |
by BrowserUk (Patriarch) on Sep 28, 2010 at 21:44 UTC | |
by vit (Friar) on Sep 28, 2010 at 22:11 UTC | |
by BrowserUk (Patriarch) on Sep 29, 2010 at 14:32 UTC |