Skip to content

Instantly share code, notes, and snippets.

@cardinal
Created April 27, 2009 20:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save cardinal/102721 to your computer and use it in GitHub Desktop.
[sweeks@kweh doten]$ r build.pl
This should only print once per object
This should only print once per object
class A {
submethod BUILD($item) {
say "This should only print once per object";
}
}
class B is A{
nothing;
}
my B $item .= new();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment