Hi perlbeginner10,

by itself, that message:

Global symbol "@stopwordlist" requires explicit package name at create links table.pl line 7.

says that you haven't put a my @stopwordlist; or something similar (our, local etc) in your code before you mentioned the array @stopwordlist for the first time.

When you're using use strict; you need to declare your variables first before you use them - that's most of the fun of using strictness! :o)

When you have a more involved problem like the first question in your post:

Can't locate object method "new" via package "Record" (perhaps you forgot to load "Record"?) at create links table.pl line 37.

it's often hard if not impossible for us to show you exactly where the error that is causing it is in your code, unless you can post us the code that is throwing the error, which will give us all the help we need to help you.

To do this, if you can you should strip out everything that's not part of the bit needed to re-create the error and just post that. If you're lucky you might even find that the process of paring the code down to the bare minimum may *show* you where the error is coming from and you won't need to ask for help then.

Of course lots of us are keen and eager to help you, but there's always more satisfaction for you in figuring it out yourself than having the answer given to you by someone who already knows that bit - and perhaps you'll get a better grasp of how it works too! :o)

As this code is code calling a module which you have written, it could be pointing to an error in the module itself rather than that code which it trying to invoke it, so it would help to include (a stripped down version of if nescessary) the module as well.


In reply to Re: using class module by serf
in thread using class module by perlbeginner10

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.