in reply to Homework Golf
42
(Lowercase dictionary.)
45perl -lnE'unpack("%a*")-65-96*length||say'
50perl -lne'65+length()*96-unpack"%a*"or print'
Note: I added the say version following Athanasius's example.perl -lne'65+length()*96-unpack"%a*",lc or print'
Dec 05: x-d the readmore tags. Once more as above, using Abigail's Horror:
#23456789_123456789_123456789_123456789_ perl -lnE'65+96*y///c-unpack"%a*"or say'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Homework Golf
by eyepopslikeamosquito (Archbishop) on Dec 04, 2013 at 10:22 UTC | |
by McD (Chaplain) on Dec 05, 2013 at 01:56 UTC | |
|
Re^2: Homework Golf
by Tux (Canon) on Dec 04, 2013 at 07:26 UTC | |
by oiskuu (Hermit) on Dec 04, 2013 at 07:32 UTC | |
by McD (Chaplain) on Dec 05, 2013 at 01:48 UTC |