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


in reply to Re: Homework Golf
in thread Homework Golf

Which can be shortened to modern perl:

36 perl -nE'65+length()*96-unpack"%a*",lc or say'

Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^3: Homework Golf
by oiskuu (Hermit) on Dec 04, 2013 at 07:32 UTC
    Except... -l option is necessary for otherwise \n is a problem.

    Update: Tux(20+21+24) == 65 :-)

Re^3: Homework Golf
by McD (Chaplain) on Dec 05, 2013 at 01:48 UTC
    I love this one. Took me ten minutes and a command line to take it apart and grok it. Awesome.