sub read_dict{
local $| = 1; ##!
my $file = shift;
my %dict;
open( my $fh, "<:encoding(utf5)", $file );
my $c = 0; ##!
while( <FILE> ) {
printf "\r%d\t", $c unless ++$c % 1000; ##!
chomp; ## no need to chomp twice
my ($p1, $p2) = split /\t/;
push( @{ $dict{ $p1 } }, $p2 );
}
close $fh;
return \%dict; ## main space saving change; return a ref to the ha
+sh
}
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
|