Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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 ...


Comment on Re: How do I print a hash in perl
Select or Download Code
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2015-06-03 02:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What kind of chocolate gives you the most pleasure?















    Results (116 votes), past polls