Skip to content

Instantly share code, notes, and snippets.

@tony-o
Created December 3, 2014 21:02
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 tony-o/644519cc86f68054ff2a to your computer and use it in GitHub Desktop.
Save tony-o/644519cc86f68054ff2a to your computer and use it in GitHub Desktop.

##Dir structure

tonyo@defcon:~/projects/test$ find . |grep -e '\.p[m|l]6$'
./zlib/a.pm6
./lib/a.pm6
./candidates.pl6

###zlib/a.pm6

class a { };

###lib/a.pm6

class a { };

###candidates.pl6

#!/usr/bin/env perl6

use lib 'lib';
use lib 'zlib';

CompUnitRepo.candidates('a').perl.say;

####Output

(CompUnit.new(from => "Perl6", name => "a", extension => "pm6", precomp-ext => "moarvm", path => q|/home/tonyo/projects/test/zlib/a.pm6|.IO(:SPEC(IO::Spec::Unix)), has-source => Bool::True, has-precomp => Bool::False, is-loaded => Bool::False),).list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment