in reply to How do I print a hash in perl

It looks like $stopwords is a hash reference. Tip #4 from the Basic debugging checklist, try:
use Data::Dumper; print Dumper($stopwords);

See also: