Skip to content

Instantly share code, notes, and snippets.

@cxreg
Created December 24, 2015 05:00
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 cxreg/ded31eeedf2d021c15d2 to your computer and use it in GitHub Desktop.
Save cxreg/ded31eeedf2d021c15d2 to your computer and use it in GitHub Desktop.
count@bumba:~/test$ cat Foo.pm6
unit module Foo; class Foo { }
count@bumba:~/test$ perl6 -I. -MFoo -e 'Foo.can("bar")'
Too many positionals passed; expected 2 arguments but got 3
in block <unit> at -e line 1
count@bumba:~/test$ perl6 -e 'unit module Foo; class Foo { }; Foo.can("bar")'
count@bumba:~/test$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment