Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created August 17, 2016 13:00
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/281a4534659d2032938375e78241c03f to your computer and use it in GitHub Desktop.
Save zoffixznet/281a4534659d2032938375e78241c03f to your computer and use it in GitHub Desktop.
zoffix@leliana:/tmp/tmp.m0TGnHo3HC$ perl6 -v
This is Rakudo version 2016.07.1-151-g5dd91d8 built on MoarVM version 2016.07-17-g40948f6
implementing Perl 6.c.
zoffix@leliana:/tmp/tmp.m0TGnHo3HC$ tree
.
└── lib
└── JSON
└── Fast.pm6
2 directories, 1 file
zoffix@leliana:/tmp/tmp.m0TGnHo3HC$ cat lib/JSON/Fast.pm6
unit class JSON::Fast;
method new { say "hello!" }
zoffix@leliana:/tmp/tmp.m0TGnHo3HC$ perl6 -MJSON::Fast -e 'JSON::Fast.new'
You cannot create an instance of this type (JSON::Fast)
in block <unit> at -e line 1
zoffix@leliana:/tmp/tmp.m0TGnHo3HC$ perl6 -Ilib -MJSON::Fast -e 'JSON::Fast.new'
hello!
zoffix@leliana:/tmp/tmp.m0TGnHo3HC$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment