Skip to content

Instantly share code, notes, and snippets.

@tony-o
Last active August 29, 2015 14: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 tony-o/286bd818ecc712e0d862 to your computer and use it in GitHub Desktop.
Save tony-o/286bd818ecc712e0d862 to your computer and use it in GitHub Desktop.
atweiden

#atweiden.pm6

unit class atweiden;

class atweiden::test is export {
  submethod BUILD {
    "hi atweiden".say;
  }
}

has atweiden::test $.test;

#atweiden.pl6

#!/usr/bin/env perl6

use lib '.';
use atweiden;

atweiden::test.new;

#output

tonyo@imac ~/projects/test$ ./atweiden.pl6
hi atweiden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment