Skip to content

Instantly share code, notes, and snippets.

@niner
Created December 13, 2015 10:44
Show Gist options
  • Save niner/fbacfa535a8bd8f8104e to your computer and use it in GitHub Desktop.
Save niner/fbacfa535a8bd8f8104e to your computer and use it in GitHub Desktop.
nine@sphinx:~/test> tree lib/JDV
lib/JDV
├── Foo
│   ├── Bar.pm
│   └── Baz.pm
└── Qux.pm
1 directory, 3 files
nine@sphinx:~/test> cat lib/JDV/Qux.pm
class JDV::Qux {
}
nine@sphinx:~/test> cat lib/JDV/Foo/Bar.pm
use JDV::Qux;
class JDV::Foo::Bar {
}
# vim:ft=perl6
nine@sphinx:~/test> cat lib/JDV/Foo/Baz.pm
use JDV::Qux;
class JDV::Foo::Baz {
}
nine@sphinx:~/test> perl6 -Ilib -e 'use JDV::Foo::Bar; use JDV::Foo::Baz; my JDV::Foo::Bar $bar;'
===SORRY!===
Type 'JDV::Foo::Bar' is not declared
at -e:1
------> Bar; use JDV::Foo::Baz; my JDV::Foo::Bar⏏ $bar;
Malformed my
at -e:1
------> o::Bar; use JDV::Foo::Baz; my JDV::Foo::⏏Bar $bar;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment