Maybe you could do it simpler:
use Path::Tiny; my %dict = map { ($_, 1) } path("d:/perl/words.short")->lines_utf8({chomp => 1}); say "got apple" if exists $dict{apple} ;
In reply to Re: Mysterious hash problem
by leszekdubiel
in thread Mysterious hash problem
by BernieC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |