Chas. Owens wrote:

2. package variables are always visible when fully qualified (i.e.
   $PKGNAME::varname), but the short name is only visible to the scope
   that contained the our statement and any nested scopes

For example:

{ package Data::Dumper; our ($Indent, $Sortkeys, $Terse) = (1)x3 }

--
Ruud

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to