News for hackers. Stuff that matters.
Re:Hyperpolyglot: PHP, Perl, Python, Ruby by georgefox on Saturday August 13, 2011 @06:56PM (#2882209)
Some of the PHP stuff, as others have noted with Python, etc., is misleading or outdated.

Backticks work:

    echo `ls`;
Constants can be declared globally:

    const PI = 3.14;
Anonymous functions can be declared without create_function:

    $f = function($x) { return $x*$x; }
I'm sure there are more. That said, I love these sorts of side-by-side comparisons.
Re:Hyperpolyglot: PHP, Perl, Python, Ruby by treetrouble on Saturday August 13, 2011 @06:57PM (#2882213)
There is a lot of non-idiomatic Ruby as well
Re:Hyperpolyglot: PHP, Perl, Python, Ruby by k33l0r on Sunday August 14, 2011 @06:40AM (#2883334)
Also it doesn't tell you that 'and' and 'or' are not equal to && and || in Ruby. http://hyperpolyglot.org/scripting#logical-operators