diff --git a/lib/Data/Generators/ResourceAccess.rakumod b/lib/Data/Generators/ResourceAccess.rakumod index 67e019f..ef58e75 100644 --- a/lib/Data/Generators/ResourceAccess.rakumod +++ b/lib/Data/Generators/ResourceAccess.rakumod @@ -47,7 +47,7 @@ class Data::Generators::ResourceAccess { #say "Number of calls to .make $numberOfMakeCalls"; #----------------------------------------------------------- - my $fileName = %?RESOURCES; + my $fileName = %?RESOURCES.open; my $text = slurp $fileName; @englishWords = $text.split("\n").map({ $_.split(',') }); @@ -70,7 +70,7 @@ class Data::Generators::ResourceAccess { #----------------------------------------------------------- # Species Name Count - $fileName = %?RESOURCES; + $fileName = %?RESOURCES.open; $text = slurp $fileName; my @petNames = $text.split("\n").map({ $_.split('",').List });