in reply to Re: How it works?
in thread How it works?

Your explanation is perfect—aces—but I assert that $array[rand@array] is a perfectly cromulent Perl idiom and if we are writing our Perl code for Pythonistas, PHPeepers, Javatards, and Ruby fanbois… That sucks the love of being JAPH right out.

Replies are listed 'Best First'.
Re^3: How it works?
by shmem (Chancellor) on Jan 21, 2016 at 07:11 UTC

    Assertion approved. I've been working at a shop where coding standard demanded me to write perl like shell, and worse. No (key => $value) x !! $flag in hash constructors, no statement modifiers, no nested expressions like $array[rand@array] and else. Never, ever, unless. Yuck.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'