Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created December 15, 2014 21:54
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 jnthn/b3524444f4caeda0055b to your computer and use it in GitHub Desktop.
Save jnthn/b3524444f4caeda0055b to your computer and use it in GitHub Desktop.
class A {
method omg() { say 'ooh, found' }
method FALLBACK($name, |c) { say "Cannot $name with {c.perl}" }
}
A.omg;
A.wtf('bbq', meat => 'sausage');
ooh, found
Cannot wtf with Capture.new(list => ("bbq",), hash => {"meat" => "sausage"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment