Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 exploiting the Monastery: (8)
As of 2014-10-25 13:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (143 votes), past polls