Skip to content

Instantly share code, notes, and snippets.

@Benabik
Created December 27, 2011 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Benabik/1524863 to your computer and use it in GitHub Desktop.
Save Benabik/1524863 to your computer and use it in GitHub Desktop.
Comb proxy attempt
my @a;
my $a := {
my $temp;
Proxy.new(
FETCH => method { return $temp; },
STORE => method ($val) { $temp = $val; @a = $val.comb }
);
}();
$a = 'test';
say $a;
say @a;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment