> According to wikipedia, perl5 was released in 1994 while javascript only started appering in 1995, so perl is older.
Well the question was also about Perl4 and having references, IIRC the old typeglob mechanism to pass functions around is a legacy of Perl4
JS OTOH only introduced full functional mechanisms with version 1.2 in June 1997.
> But I think his point is in the "to go mainstream" part, I don't think perl reached that point yet, perl6 could do it perhaps.
hehe flaming potential! :)
IIRC both JS and Perl are listed in the top 10 of most used languages, and Perl was much earlier popular than JS.
But Crockford seems to be an ex-Java programmer who first learned scripting with JS.
For instance he gives some horrible advices in his book, no Saint of the monastery would ever give!
(like using || to assign undefined values a default value! Hei JS does like Perl type casting mapping 0 and "" to false !!!)
|