#! /usr/bin/perl -l use warnings; use strict; s cm cjump s or hide s it eq phcxg cmp s oin ocker oxsio or s jm pjstjxis ne s k s or k anotk or s s eq ps s lt s qit qerl qog or s wide s wq qer pqwe eq print and last for eval q s caller s
OK its not rocket-science, and I cheated by using -l but it's fun!
updated - thanks to cog for pointing out a JAPH going further and using keywords only! Nice work blokhead. (And I'm sure there are others with a newline and no warnings too.)
update2 - OK it's so obvious how to avoid the -l I feel mildly stupid! At least I worked it out myself (not the method suggested by ambrus either!). Modified JAPH:
#! /usr/bin/perl use warnings; use strict; s cm cjump s or hide s it eq phcxg cmp s oin ocker oxsio or s jm pjstjxis ne s k s or k anotk or s seq ps s lt s qit qerl qog or s wide s wq qer pqwe eq print and last for eval q s caller s
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: /^[a-z ]*$/
by blokhead (Monsignor) on Sep 29, 2005 at 15:26 UTC | |
by cog (Parson) on Sep 29, 2005 at 15:43 UTC | |
|
Re: /^[a-z ]*$/
by ambrus (Abbot) on Sep 29, 2005 at 15:26 UTC | |
|
Re: /^[a-z ]*$/
by cog (Parson) on Sep 29, 2005 at 15:00 UTC |