Skip to content

Instantly share code, notes, and snippets.

@pmichaud
Created September 3, 2009 03:43
Show Gist options
  • Save pmichaud/180119 to your computer and use it in GitHub Desktop.
Save pmichaud/180119 to your computer and use it in GitHub Desktop.
my $*VAR ::= 'outer';
sub foo() {
sub bar() {
say $*VAR;
}
bar();
}
{
my *$VAR ::= 'caller';
foo();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment