OK!
I rewrote the thing to use arrays instead of hashes, updating in place
instead of moving stuff around, and generally using brute force
instead of cleverness.
I didn't want to do it that way before, because I was afraid it would
take too much time.
Anyway now it runs to completion, and takes
I have a big data file - about 7000 entries, each about 100 bytes.
I have to search it on the order of 7000 times, so I need to keep it
in memory.
As I search, some items no longer need to be searched, but they still
need to be saved. To save search time, I store the data as a set of
parallel has
I'm trying to set up a list of words to ignore in a text.
I tried it like this:
my @ignore = ("U.S.C", "Corp", "Miss", "Conf", "Cong");
and later in a loop
if ( $exists $ignore [$lastWord] ) { next;}
But that tested positive for EVERY $lastWord and skipped every time !
It did the same when I us