JavaScript is much younger than Perl, and Brendan Eich admitted that he was influenced by Perl.¹ Perl was THE dominating scripting language back then.

It's also easy to prove if you list the semantic similarities.

It's just the syntax that has to be similar to Java because of the joint venture of Netscape with Sun Microsystems.

Brendon was originally hired to implement a Scheme (Lisp) based integrated language, similar to what was the case with Auto CAD and Emacs. (So one might argue if it's just a feature Perl copied from Lisp.)

Emacs was the (or one of the first) apps to come with an integrated high level scripting language and it proved to be extremely productive.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

¹) I read it once in an interview but I can't find it anymore.

There is a tendency to punish Perl with silence, to weird it mildly.

The WP page of JS doesn't list Perl as influence, tho even the comments in the code base cite perl.

Most clearly with

  • Array methods which are named like in Perl (pop, etc)
  • String matching methods
  • Perl 4 compatible Regexes
  • "Strict mode" (later add on)

    In reply to Re^3: When you first encountered Perl, which feature amazed you the most? by LanX
    in thread When you first encountered Perl, which feature amazed you the most? by talexb

    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.