Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: How do I print a hash in perl

by Kenosis (Priest)
on Nov 02, 2012 at 19:55 UTC ( #1002040=note: print w/replies, xml ) Need Help??

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
    Thank you! That worked perfectly!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1002040]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2016-10-27 04:10 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (353 votes). Check out past polls.