Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8784905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:13:15+00:00 2026-06-13T21:13:15+00:00

How do I print $stopwords? It seems to be a string ($) but when

  • 0

How do I print $stopwords? It seems to be a string ($) but when I print it I get: “HASH(0x8B694)” with the memory address changing on each run.

I am using Lingua::StopWords and I simply want to print the stop words that it’s using so I know for sure what stop words are there. I would like to print these two a file.

Do I need to deference the $stopwords some how?

Here is the code:

use Lingua::StopWords qw( getStopWords );

open(TEST, ">results_stopwords.txt") or die("Unable to open requested file.");
my $stopwords = getStopWords('en');

print $stopwords;

I’ve tried:

my @temp = $stopwords;
print "@temp";

But that doesn’t work. Help!

Last note: I know there is a list of stop words for Lingua::StopWords, but I am using the (en) and I just want to make absolute sure what stop words I am using, so that is why I want to print it and ideally I want to print it to a file which the file part I should already know how to do.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T21:13:17+00:00Added an answer on June 13, 2026 at 9:13 pm

    to dereference a hashref :

    %hash = %{$hashref};  # makes a copy
    

    so to iterate over keys values

    while(($key,$value)=each%{$hashref}){
        print "$key => $value\n";
    }
    

    or (less efficient but didactic purpose)

    for $key (keys %{$hashref}){
        print "$key => $hashref->{$key}\n";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the following example from Lingua::StopWords : use Lingua::StopWords qw( getStopWords );
print_repeat should print out the string s, but repeat the ith character i times
print_r($address['Country']); echo $address['Country']['name']; Here is what I get for the print_r: Array ( [Country]
I print documents (batch print) using Word.Document.PrintOut method. How can I print a document
print 077777#how can i get binary i use python2.5
Aim : Print present working directory in c on Linux machine. Without using pointers,
I print the start and end time using date +"%T" , which results in
print \e[4m, $prompt, \e[24m, \e[1m; It seems it doesn't work in bash: [root@dev-test ~]$
The print functionality of Excel (using VBA) is extremely slow. I'm hoping someone has
Print a web page in landscape mode using javascript. While printing, I want to:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.