in reply to Re: a large text file into hash
in thread Reaped: a large text file into hash
I have also no idea if I tie the hash, later on how can I access it from my hard drive.my $t = tie(%hash, Tie::IxHash); foreach my $line (@file){ $line_count++; my @ngrams=produce_ngrams($line); foreach my $ngram (@ngrams) { #$t->Push(@{ $hash{$ngram} } => $line_count); push(@{ $hash{$ngram} }, $line_count); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: a large text file into hash
by BrowserUk (Patriarch) on Jan 28, 2011 at 14:01 UTC | |
by perl_lover_always (Acolyte) on Jan 28, 2011 at 14:12 UTC | |
by BrowserUk (Patriarch) on Jan 28, 2011 at 14:48 UTC |