Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 musing on the Monastery: (7)
As of 2015-03-06 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (161 votes), past polls