Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: TMTOWTDI Puzzle: Generating a range of numbers

by IlyaM (Parson)
on Dec 19, 2001 at 04:19 UTC ( #132986=note: print w/ replies, xml ) Need Help??


in reply to TMTOWTDI Puzzle: Generating a range of numbers

My variant:

$c = 'qwertyasdf'; ($a, $b, @a) = sort map { $a = $_; ord chr grep $_ le $a, split //, $c } split //, $c; print "$a @a $b\n";
Update: Removed forbiden '+' operation. Updated code even more obfuscated than it was before.

--
Ilya Martynov (http://martynov.org/)


Comment on Re: TMTOWTDI Puzzle: Generating a range of numbers
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2014-11-28 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (191 votes), past polls