Skip to content

Instantly share code, notes, and snippets.

@Mouq
Created February 12, 2014 21:41
Show Gist options
  • Save Mouq/8965104 to your computer and use it in GitHub Desktop.
Save Mouq/8965104 to your computer and use it in GitHub Desktop.
class RT61918 {
has $.inst is rw;
has $!priv is rw;
has $.string = 'krach';
method init {
$.inst = [ rand, rand ];
$!priv = [ rand, rand ].perl;
}
}
my $t1 = RT61918.new();
$t1.init;
my $t1_init = $t1.perl;
my $t2_init = EVAL($t1_init).perl;
say $t1_init;
say $t2_init;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment