Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

I have been into that matter for some time; not being able to decide what type of language to use for a specific task.

But since you are working on the web and processing forms, you're down with two solutions; Perl and JavaScript.

Here are some of the diffrences :


    • This is Client-Side scripting, so you will be depending on the user's browser to support or not your scripts.
    • In order to access specific objects (form fields values, or list values) you will need to setup a way to access them supporting all the browsers ex: Netscape calls the form diffrently than IE, and another diffrent one is NS6 (and that's only two types of browsers)
    • Processing texts of forms is a little hard to do right with JavaScript
    • I'm sure you will find more...


    • This is Server-Side scripting, so all your scripts will run whatever browser asks them to.
    • In order to access specific objects, you just use and you have an object with all the values you need in it.
    • Processing text is as simple as "writing the right RexEx" in Perl.

Finally, If you have a lot of text to process, and you need to do it quickly and efficiently, go for Perl, it's faster(in programming) and more reliable.

If you only need to 'get the contents of a field and put it in another' you can make it in JavaScript.

I hope this information helps you decide

Chady |

In reply to Re: Perl vs. Javascript by Chady
in thread Perl vs. Javascript by CiceroLove

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

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2021-07-30 14:28 GMT
Find Nodes?
    Voting Booth?

    No recent polls found