in reply to 'our' scoping
$foo = 1; use strict; { our $foo; $foo++; # $::foo now 2 } { no strict; $foo++; # $::foo now 3 } # dies with # Global symbol "$foo" requires explicit package name $foo++;
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: 'our' scoping
by tilly (Archbishop) on Jun 01, 2004 at 23:37 UTC |