Skip to content

Commit

Permalink
refactor:Using the new way of accessing resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
antononcube committed Apr 25, 2024
1 parent d274b98 commit d3f833d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Data/Generators/ResourceAccess.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Data::Generators::ResourceAccess {
#say "Number of calls to .make $numberOfMakeCalls";

#-----------------------------------------------------------
my $fileName = %?RESOURCES<dfEnglishWords.csv>;
my $fileName = %?RESOURCES<dfEnglishWords.csv>.open;

my $text = slurp $fileName;
@englishWords = $text.split("\n").map({ $_.split(',') });
Expand All @@ -70,7 +70,7 @@ class Data::Generators::ResourceAccess {

#-----------------------------------------------------------
# Species Name Count
$fileName = %?RESOURCES<dfPetNameCounts.csv>;
$fileName = %?RESOURCES<dfPetNameCounts.csv>.open;

$text = slurp $fileName;
my @petNames = $text.split("\n").map({ $_.split('",').List });
Expand Down

0 comments on commit d3f833d

Please sign in to comment.