in reply to Re: A comparison of Perl vs. JavaScript -- a reference table.
in thread A comparison of Perl vs. JavaScript -- a reference table.

Thats a very rough comparison, for instance the differences of my and var and their scoping mechanisms can lead to ugly problems.

E.g. JS knows only function scope and not block scope AND unlike my does var also influence preceding variables (so called "hoisting")

Further more linking to MDN instead of W3Schools for further informations is generally a better idea.

For instance see Mozillas approach to come closer to my by introducing "let"!

For those who can read German here an old talk of mine from GPW2011 investigating the differences.

Cheers Rolf

( addicted to the Perl Programming Language)

) but unfortunately still hoisting =(

Replies are listed 'Best First'.
Re^3: A comparison of Perl vs. JavaScript -- a reference table.
by taint (Chaplain) on Dec 06, 2013 at 07:02 UTC
    Thank you very much for your insight on that table, LanX.

    I think I'll make a copy, and see if I can't improve, it based on your, and perhaps others, input -- not to mention, my own. ;)

    Thanks again, for taking the time to respond, LanX. I look forward to reading your talk.

    Best wishes.

    --Chris

    EDIT: Oh. If I could only read the German language. Or (Ich bin nicht in der Lage zu lesen der deutschen Sprache.).
    I don't suppose you have an English translation of your talk, LanX?

    Hey. I'm not completely useless. I can be used as a bad example.
    
Re^3: A comparison of Perl vs. JavaScript -- a reference table.
by Anonymous Monk on Dec 14, 2020 at 23:56 UTC

    Further more linking to MDN instead of W3Schools for further informations is generally a better idea.

    FWIW, this guy has been using MDN all this time, but its broken again. This time for firefox by javascript (html content shows, then blanked out ). Possibly by googleanalytics , lots of js hate for ol firefox

    Never had issues like this with W3schools even though I stopped using it long ago

    Internet, its a thing :)