You're viewing a comment by q and its responses.

January 08, 2010, 12:34

>perl -le 'print map { ("a".."z")[rand 26] } 1..8'

>Here the map function executes ("a".."z")[rand >26] code 8 times (because it iterates over the >dummy range 1..8).
>In each iteration the code >chooses a random >letter from the alphabet.
Would you please explain how that works?

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "computer_190": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.