this is misleading, no strict "vars" has a different effect.
{ local our $bob; #no strict 'vars'; $bob = "bob"; warn "$bob\n"; # > bob package OTHER; warn "$bob\n"; # > bob }
{ #local our $bob; no strict 'vars'; $bob = "bob"; warn "$bob\n"; # > bob package OTHER; warn "$bob\n"; # ERR: Use of uninitialized value $OTHER::bob in concatenation }
> local and our are completely unrelated.
well not completely, since local can't be used for private vars
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^2: local our?
by LanX
in thread local our?
by gam3
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |