in reply to Creating Metadata from Text File
As far as removing the common words, you could use indexes from List::MoreUtils to get the indices of the common words to remove them, OR get the indices of the not common words to add them to another array. One of the more experienced monks may have a better solution, though.# slurp file contents my $contents; { local $/ = undef; open(my $handle, '<', "filename") or die("error: $!"); $contents = <$handle>; close $handle; } # split into array on consecutive whitespace my @words = split /\s+/, $contents;
__________
Systems development is like banging your head against a wall...
It's usually very painful, but if you're persistent, you'll get through it.
|
|---|