Sunspots. Or evil gnomes. One of the two. Probably gnomes.

Without seeing the code there's any number of things that it could be doing, from calling sleep( 5+rand(5) ) to traversing the current working directory and posting a copy of your secret muffin recipe to USENET. When you use module; the code is pulled in and any statements outside subroutine declarations get executed (remember use is effectively inside a BEGIN { } block), so there's no telling what the problem is without more info.

(And another thing: modules starting with lower case names are bad ideas as by convention those are "reserved" for pragmatic modules for Perl's use (e.g. strict or base); granted this particular name isn't likely to cause a conflict but it's bad style.)

Update: Changed phrasing in the parenthetical comment on naming to make it read more good.


In reply to Re: including a class makes the perl/cgi script run slower by Fletch
in thread including a class makes the perl/cgi script run slower by rsennat

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.