Ahem.

Perl = Language definition perl = Implmenentation of that language PERL = ???

There's no such thing as 'PERL', unless it exists elsewhere in the English language.

Now for your question: Before JavaScript existed, everyone did everything with server-side programs. Perl has fit this domain well. However, there are things on the client side (which is where JavaScript lives) that can make the process more efficent. For instance, say you have a form that has certain required fields. Before JavaScript, if any of these fields weren't filled out, the client would submit the form and the server would return an error saying the form wasn't completely filled out. With JavaScript, we can stop the user from submitting an invalid form in the first place, thus saving bandwidth and the time it takes for a server to execute the program to parse the form input.

However, JavaScript can be shut off by the client. If the programmer in our example above said "JavaScript is doing the form validation, so there is no need to do it on the server side", then we could have a problem. A client that shuts off JavaScript would still be able to submit the form, and the server program would dutifully parse it. Thus, while JavaScript is often a useful tool, your Perl programs should be written to assume that it is shut off.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated


In reply to Re: PERL on web pages by hardburn
in thread PERL on web pages by samhaintha

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.