Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created January 6, 2016 13:22
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 zoffixznet/d8ed10c0be4dd19bfe8e to your computer and use it in GitHub Desktop.
Save zoffixznet/d8ed10c0be4dd19bfe8e to your computer and use it in GitHub Desktop.
zoffix@:/tmp/tmp.MPQYRB1aVB$ cat Foo.pm6
my $x = rand;
class Foo { method bar { say $x } }
zoffix@:/tmp/tmp.MPQYRB1aVB$ perl6 -I. -MFoo -e 'loop { say Foo.new.bar; GLOBAL::<Foo>:delete; EVALFILE "Foo.pm6"; sleep 2}'
0.581546950016309
True
0.581546950016309
True
0.581546950016309
True
^C
zoffix@:/tmp/tmp.MPQYRB1aVB$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment