Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[euler] read names.txt independently of run dir
  • Loading branch information
Paul Cochrane committed Mar 16, 2015
1 parent d85c436 commit 328646a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion categories/euler/prob022-grondilu.pl
@@ -1,8 +1,9 @@
use v6;
my $i = 1;
constant A = 'A'.ord - 1;
my $names-file = $*PROGRAM_NAME.IO.dirname ~ "/names.txt";
say [+] gather
for sort slurp 'names.txt' {
for sort slurp $names-file {
take $i++ * [+] .comb».ord »-» A;
}

Expand Down

0 comments on commit 328646a

Please sign in to comment.