Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
P is for Practical
 
PerlMonks  

Re^2: Ruby vs Perl vs LISP; the killer feature lacking in Ruby

by tobyink (Abbot)
on May 21, 2012 at 00:14 UTC ( #971540=note: print w/ replies, xml ) Need Help??


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'


Comment on Re^2: Ruby vs Perl vs LISP; the killer feature lacking in Ruby
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://971540]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (19)
As of 2014-04-17 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (453 votes), past polls