in reply to How do I print a hash in perl
getStopWords('en') returns a hash reference that needs to be dereferenced for printing (the keys are the stopwords):
use strict; use warnings; use Lingua::StopWords qw( getStopWords ); my $stopwords = getStopWords('en'); print "$_\n" for sort keys %$stopwords;
Partial output:
a about above after again against all am an and any are aren't ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I print a hash in perl
by demisheep (Initiate) on Nov 09, 2012 at 16:52 UTC |