Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: How it works?

by Your Mother (Archbishop)
on Jan 21, 2016 at 00:34 UTC ( [id://1153225]=note: print w/replies, xml ) Need Help??


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'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-24 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found