diff options
| -rw-r--r-- | challenge-024/andrezgz/perl5/ch-2.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-024/andrezgz/perl5/ch-2.pl b/challenge-024/andrezgz/perl5/ch-2.pl index bfa208c451..49aa67a02a 100644 --- a/challenge-024/andrezgz/perl5/ch-2.pl +++ b/challenge-024/andrezgz/perl5/ch-2.pl @@ -35,7 +35,7 @@ print "\nSearch word: "; my $w = <>; chomp $w; if ( exists $index{lc $w} ) { - print "'$w' was found on ", join(',',keys $index{lc $w}) . "\n"; + print "'$w' was found on ", join(',',keys %{$index{lc $w}}) . "\n"; } else { print "'$w' wasn't found on any document\n"; |
