in reply to error:Global symbol "$stopwords" requires explicit package

You need to change your declaration to:

my $stopwords = "whatever_you_set";

Before your code, that is.

You must be using use strict;

HTH.

Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a yourname@perl.me.uk? Just ask!!!

Replies are listed 'Best First'.
Re^2: error:Global symbol "$stopwords" requires explicit package
by zulqernain (Novice) on Jun 01, 2005 at 14:32 UTC
    i am using these statements
    open( LIST, "stopwords.txt" ) or die "$!"; my @stopwords = <LIST>;
    yes i am using strict