Skip to content

Instantly share code, notes, and snippets.

@felher
Last active December 20, 2015 22:39
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 felher/6206656 to your computer and use it in GitHub Desktop.
Save felher/6206656 to your computer and use it in GitHub Desktop.
I have a Perl6-Project with ah file 'main.pl' and a subdirectory 'lib/' containing the file 'Main.pm'. The contents of the files are shown below. If I run 'nom main.pl' within that project, I get the correct output shown in 'output_when_not_compiled_to_pir.txt'. If I do 'nom --output=lib/Main.pir --target=pir lib/Main.pm' before running 'nom mai…
use v6;
use Main;
use v6;
constant %ah = (^10).categorize: *%3;
say %ah.perl;
("0" => [], "1" => [], "2" => []).hash
("0" => [0, 3, 6, 9], "1" => [1, 4, 7], "2" => [2, 5, 8]).hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment