Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created January 6, 2017 17:04
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/b380cf13348e280e789e2b4a18fae7ac to your computer and use it in GitHub Desktop.
Save zoffixznet/b380cf13348e280e789e2b4a18fae7ac to your computer and use it in GitHub Desktop.
$ tree
.
├── v1
│   ├── Foo.pm6
│   └── META6.json
└── v2
├── Foo.pm6
└── META6.json
2 directories, 4 files
$ perl6 -Iv1 -Iv2 -e 'sub reload ($v) { "use Foo:ver<$v>; &foo".EVAL }; my &foo = reload 1; foo; sleep 10; &foo = reload 2; foo'
one
one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment