Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Homework Golf

by Tux (Canon)
on Dec 04, 2013 at 07:26 UTC ( [id://1065548]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 12:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found