Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: "Indirect" object syntax?

by muba (Priest)
on Nov 24, 2015 at 02:20 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-03-29 05:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found