However, my codes don't use cgi.pm, and I'm wondering whether I'm doing things the way I'm supposed to...

Wonder no more! You *aren't* doing things the way you're supposed to! Well, of course the glory of Perl is there *is* no way you're supposed to do things; but there are some ways which are so well tried (and the alternatives so provenly poor) that it makes no sense to do anything else. CGI.pm is one of them. I know. I went on for six months rolling my own and getting more and more tangled in coils of unaccountable legacy code and taking hours to script stuff that should have taken minutes. Then I made the very limited effort to read the CGI docs. And... well, let's just say I wish I'd done it earlier.

This is why you'll find few monks will answer your question directly. Most people here are so convinced, for good reasons, about CGI.pm that they feel, rightly, that it's a waste of everyone's time to help someone figure out how to do without it. (NB don't take it personally if somebody shoots down the question - it's just that it's been asked quite a few times before!)

§ George Sherston

In reply to Re: Remembering form data without cgi.pm by George_Sherston
in thread Remembering form data without cgi.pm by perlnewbie-newbie

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.