Created
April 27, 2009 20:49
-
-
Save cardinal/102721 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[sweeks@kweh doten]$ r build.pl | |
This should only print once per object | |
This should only print once per object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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