Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^4: "Indirect" object syntax?

by muba (Priest)
on Nov 24, 2015 at 02:20 UTC ( #1148469=note: print w/replies, xml ) Need Help??

in reply to Re^3: "Indirect" object syntax?
in thread "Indirect" object syntax?

Ah, well then. I must've misunderstood the intention behind your post. My bad.

do('many', 'things', 'now') if ( $ready and $set and $prepared );

could be made even more English-like (Englishy? Englishesque?) if we ignore for a moment that do is a built-in function ;)

do 'many', 'things', 'now' if $ready and $set and $prepared;

And even you prefer the if-this-then-than notation over the that-if-this syntax, there are neat ways:

$ready and $set and $prepared and do 'many', 'things', 'now'; $ready and $set and $prepared? do 'many', 'things', 'now' :() ;

What's funny about that last one is that it's... well... rather Englishy indeed:

(Are you) ready and set and prepared? Do many things now <shocked emoticon>;

Coincidentally (or maybe not, as it's neatly linked to on my homenode), I've asked about the various ways to write conditionals before.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2021-04-16 10:35 GMT
Find Nodes?
    Voting Booth?

    No recent polls found