http://www.perlmonks.org?node_id=46887


in reply to Barstool Trivia

Hmmm. What about package?

Replies are listed 'Best First'.
Re: Re: Barstool Trivia
by saucepan (Scribe) on Dec 15, 2000 at 23:51 UTC

    It's not clear that changing packages counts as a scope since it doesn't affect lexical variables:

    package SomePackage; my $foo = "bar\n"; package main; print $foo; # prints 'bar'

    I could be wrong about the formal definition of a "scope", though. We'll have to leave that up to the judge. :)