Skip to content

Instantly share code, notes, and snippets.

@adaptiveoptics
Created December 1, 2016 05:26
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 adaptiveoptics/a4bad65ef7f5228e9e686d054dbd5dca to your computer and use it in GitHub Desktop.
Save adaptiveoptics/a4bad65ef7f5228e9e686d054dbd5dca to your computer and use it in GitHub Desktop.
class A {
method sayit() {
once say 'hi';
}
}
sub MAIN() {
my $a = A.new;
$a.sayit; # says 'hi'
my $b = A.new;
$b.sayit; # nothing
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment