http://www.perlmonks.org?node_id=971540


in reply to Re: Ruby vs Perl vs LISP; the killer feature lacking in Ruby
in thread Ruby vs Perl vs LISP; the killer feature lacking in Ruby

That can be golfed down to just 80 characters.

class H{public static void main(String[]a){System.out.println("Hello W +orld!");}}

In Perl there's of course the 21 character solution, which can be reduced to 19 if STDERR is allowed.

In PHP there's a 13 character solution.

(I'm assuming that in all cases, "!\n" is required at the end.)

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'