Guest User

Untitled

a guest
May 8th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. use JSON::Tiny;
  2.  
  3. class Foo {
  4. has $.a;
  5. has $.b;
  6. }
  7.  
  8. my $h = from-json '{"a": 111, "b": 222}';
  9.  
  10. my $f = Foo.new:
  11. a => $h<a>,
  12. b => $h<b>;
Advertisement
Add Comment
Please, Sign In to add comment