Ovid has asked for the wisdom of the Perl Monks concerning the following question:
What's even more humiliating is that I can't understand the explanation:( $ ,, $ ")=("a".."z")[0,-1];print "sh", $ ","m";;";;"
You're indexing twice into the alphabet, and then printing three strings separated by the now-meaningful $,I get the first part about indexing, but I'm not sure exactly what the 'a' is being assigned to. I've used the debugger and it will print 'z' for $ ", but I can't find where 'a' is going, much less how these are being passed to the print function. And what's up with the the last part? $, is the output list separator, but so what? My brain's been turned inside out and hung up to dry (a line from Cryptonomicon, if anyone cares).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Obfuscated Perl Question
by chromatic (Archbishop) on Aug 10, 2000 at 21:02 UTC | |
|
Re: Obfuscated Perl Question
by jlistf (Monk) on Aug 10, 2000 at 21:02 UTC | |
|
(Ovid)RE: Obfuscated Perl Question
by Ovid (Cardinal) on Aug 10, 2000 at 21:07 UTC | |
|
(jeffa) Re: Obfuscated Perl Question
by jeffa (Bishop) on Aug 10, 2000 at 21:14 UTC | |
by Boogman (Scribe) on Aug 10, 2000 at 21:19 UTC |