- or download this
package Foo;
our $var;
$var = 10;
- or download this
package Foo;
our $d; # FIRST
...
poletti@PolettiX:~/sviluppo/perl$ perl our.pl
in Bar::bar $d is equal to Foo
in Bar::baz $d is equal to Bar
- or download this
Bar::baz()> is in the scope of the second.
<p>In your example, you actually access <c>$Bar::d
- or download this
our($d) = @_;