Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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
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 drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2015-12-01 04:50 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (794 votes), past polls