Better to ask than to get trashed. Most of the answers you are looking for are in the Perl Camel book and several places on the web. Be sure to look up that information.

Perl handles things like memory rather nicely. To the first part of your question, you are loading a module, and then useing the code a lot. Perl isn't going to load the module over and over again, its going to put it in there at the compile state and use it from there.

Your second question is a good one really and something to think about often when creating aps that will run on the web. Always plan for success, I say, and keep things as small and light as possible. If 2000 users show up and start using your program, then 2000 scripts are being asked to run. Good thing to keep in mind.

There is lots of information on CGI as well. Good luck to you and keep on keeping on.

webadept

My Husband ran off with my shawman, but they love me as I am -- Tori Amos

In reply to Re: Doubt on perl instances! Plz reply... by webadept
in thread Doubt on perl instances! Plz reply... by ayyalaraj

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.