|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re^2: Global destruction feature / bug ?by jettero (Monsignor) |
| on Apr 03, 2008 at 14:15 UTC ( #678170=note: print w/ replies, xml ) | Need Help?? |
|
our doesn't differ significantly from use vars except that the syntax is nicer and the name is only available in the local scope even though the data is global to the namespace. I think it's well documented that our $bar doesn't go out of scope until global destruction. I actually think the behavior of the parent program is exactly what you should expect if you read our and my carefully. Please don't be down on our. It's 5.8 chic. :( -Paul
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||